how can i use the parameters decalred in main pgm in sub pgm
Answer Posted / lakshmisudha
if we defined the variables in main program like below
data division
working-storage section.
01 a1 pic 99.
01 a2 pic 9(3).
if you want use same variables in sub program you define
like below in sub program
DATA DIVISION.
LINKAGE SECTION.
01 B1 PIC 99.
01 B2 PIC 9(2).
PROCEDURE DIVISION USING A1, A2.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
In sms datasets, what is the function of the dd mgmtclas keyword?
What is condition checking in jcl? Is this possible?
List in order the hierarchical levels of jcl?
Can an individual step be restricted from using all the jobs allowed cpu time?
Does jcl support automatic restart?
How do you submit a job for execution?
What parameter directs the output of the job log dataset?
What are the rules employed while naming the steps in a job?
What is the significance of addrspc parameter in exec statement?
what is the purpose of coding class parameter in job statement?
1) SORT FIELDS=(20,4,CH,D,10,3,CH,D) OUTREC FIELDS=(7:20,4,C' FUTURE ',20,2,10,3,1Z,1,9,13,7, 24,57,TRAN=LTOU,6X'FF') This example illustrates how a fixed-length input data set can be sorted and reformatted for output. The SORTIN LRECL is 80 bytes. The reformatted output records are fixed length with a record size of 103 bytes. SOLRF (the IBM-supplied default) is in effect, so unless the SORTOUT LRECL is specified or available, it will automatically be set to the reformatted record length of 103. in the above example i have some doubts that a) sort fields=(20,4,CH,D,10,3,CH,D) -what exactly it does and this fields related to output record fields or input record fields b)outrec used to refprmat the records after sorting that means could please reply me as soon as possible Thanks. Venkat
What are steplib and joblib?
How would you understand error(execution phase)?
When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?
Mention the types of job control statements?