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

Explain how can an in-stream dataset be terminated?

1307


In sms datasets, what is the function of the dd mgmtclas keyword?

1371


Is it possible to left uncode disp?

1186


When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?

1211


How can a jobs execution priority be modified?

1274


what are the various stages of job processing?

1269


How to pass the parameter in parm using linkage section ? (syntax)?

1109


How to find the UNIT and VOLUME of a (a) KEPT (b) UNCATALOGED and (c) CATALOGED dataset - using (i) JCL and using (ii) ISPF ?

2651


hello friends ,i have exam in Hsbc,pls any on send me placement papers and technical questions on mainframes,thank u

2128


Explain about LMQUERY�give a dialog information about a data set

1428


what is use of disp parameter in dd statement?

1083


what is the purpose of coding class parameter in job statement?

1240


What do you understand by the term notcat 2 – gs?

1226


What is the function of dd name parameter with a 2 part structure; audit.report?

1213


which utility is used to sort a file in jcl?

1201