0% found this document useful (0 votes)
93 views8 pages

Multithreading Steps

The document outlines 12 steps to create a multithreaded program in Java to count customer accounts by date. The steps include: 1) initializing common variables, 2) loading necessary files, 3) selecting account numbers into an array, 4) counting accounts and writing to a template, 5) compiling subroutines, 6) creating a program file, 7) creating a batch application, 8) creating a service, 9) starting the transaction server, 10) starting the job from the command line, 11) monitoring it in another session, and 12) viewing the output in the template.

Uploaded by

priyanka
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
93 views8 pages

Multithreading Steps

The document outlines 12 steps to create a multithreaded program in Java to count customer accounts by date. The steps include: 1) initializing common variables, 2) loading necessary files, 3) selecting account numbers into an array, 4) counting accounts and writing to a template, 5) compiling subroutines, 6) creating a program file, 7) creating a batch application, 8) creating a service, 9) starting the transaction server, 10) starting the job from the command line, 11) monitoring it in another session, and 12) viewing the output in the template.

Uploaded by

priyanka
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

MULTITHREADING

The task is to count total account of the customer according to Date.


The steps to be followed are –
We need to create four subroutines –
 I_ACC.COUNT.PRIYA.COMMON
 ACC.COUNT.PRIYA.LOAD
 ACC.COUNT.PRIYA.SELECT
 ACC.COUNT.PRIYA
 WIP.ACC.COUNT.PRIYA(Live template)

Step 1 : I_ACC.COUNT.PRIYA.COMMON we need to initialize all the


common variables used in the subroutines by using COM keyword and
compilation is not needed for this.
COM – It is a keyword followed by name which is followed by some set of
variables.
SYNTAX of COM:
COM/FN.CUSTOMER.ACCOUNT,F.CUSTOMER.ACCOUNT,FN.WIP.ACC.C
OUNT.PRIYA,F.WIP.ACC.COUNT.PRIYA

Step 2 : In ACC.COUNT.PRIYA.LOAD we initialize the common variables


and open all the necessary files needed in the subroutines .
Hence open the CUSTOMER.ACCOUNT,WIP.ACC.COUNT.PRIYA

Sensitivity: Internal & Restricted


WIP.ACC.COUNT.PRIYA( template with fields named as CUSTNO,DATE and
AC.COUNT )

Step 3 : In ACC.COUNT.PRIYA.SELECT we fetched all the account numbers


of each customer , stored it as an array in SEL.LIST which is passed as an input in
the main routine(ACC.COUNT.PRIYA).
By using EB.READLIST return a list of keys from SELECT statement and by the
usage of BATCH.BUILD.LIST returns a list of ids from list file (SEL.LIST)

Sensitivity: Internal & Restricted


Step 4 : In ACC.COUNT.PRIYA after taking input as the customer number and
by DCOUNT, counting all the account number and is written into
template(WIP.ACC.COUNT.PRIYA)

Step 5 : We compile the


ACC.COUNT.PRIYA.LOAD,ACC.COUNT.PRIYA.SELECT and ACC.COUNT
.PRIYA

Sensitivity: Internal & Restricted


Step 6 : PGM.FILE with type = B created as Routine name
ACC.COUNT.PRIYA

Step 7 : Create a BATCH application as routine name ACC.COUNT.PRIYA

Sensitivity: Internal & Restricted


Step 8: Create a service in TSA.SERVICE application is same as routine name
ACC.COUNT.PRIYA
In SERVICE.CONTROL put service as START and authorize it.

Step 9 : Next we need to start the TSM in SERVICE.CONTROL Field

Sensitivity: Internal & Restricted


Step 10: From command prompt type
START.TSM -DEBUG (in j-shell)

Sensitivity: Internal & Restricted


Step 11: And open another session type tSA with agent number with
corresponding our services

Once the job is finished Successfully a message ‘Agent Stopped’


We need to stop the TSM and tSA is automatically stopped

Sensitivity: Internal & Restricted


Step 12 : Output will be reflected in template (WIP.ACC.COUNT.PRIYA)

Sensitivity: Internal & Restricted

You might also like