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


Please Help Members By Posting Answers For Below Questions

When output dataset space is required, what quantity categories are used?

810


I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one

1915


Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?

711


A dd statement consists of 4 fields. Name them?

908


what is a jcl?

677






What are steplib and joblib?

708


Is it possible to left uncode disp? If yes, how?

696


how you can access an uncataloged dataset in a JCL?

641


Explain how can the submitting users racf authority be overridden in a job stream?

661


write a jcl to execute a job by 7:00 am on jan 20,1986?

682


What is the use of disp parameter?

641


A chkpt is the parameter coded for multi-volume qsam datasets in a dd statement. When a chkpt is coded as chkpt=eov, a checkpoint is written to the dataset specified in the sysckeov statement at the end of each volume of the input/output multi-volume dataset. State whether true or false?

722


List the various advantages of using jcl language?

838


how to compare two datasets without using superce because output is limited to 133 bytes

1471


What is Cataloged Procedures?

700