Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is concatenating?

1138


I need exexution process for JCL programs

2319


Is condition checking possible in jcl?

1256


what is use of disp parameter in dd statement?

1150


What are steplib and joblib?

1218


Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?

1172


How can the attributes of one sms dataset be copied to another dataset?

1475


What is the use of symbol // in jcl?

1534


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?

1345


Explain the function of a dd statement?

1272


which utility is used to sort a file in jcl?

1276


How can a jobs execution priority be modified?

1341


how you can direct the data to spool using SYSOUT option?

1515


How do you access an uncatalogued dataset in a jcl?

1270


how you can access an uncataloged dataset in a JCL?

1191