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

Answers were Sorted based on User's Feedback



how can i use the parameters decalred in main pgm in sub pgm..

Answer / venkat

specify the field as GLOBAL.

EX.
Main program
WSS.
01 WS-ENO PIC X(9) GLOBAL.

Sub program.
PD.
DISPLAY WS-ENO.

Is This Answer Correct ?    3 Yes 0 No

how can i use the parameters decalred in main pgm in sub pgm..

Answer / 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

More JCL Interview Questions

Can we give TIME = (1440, 59) also ? or is TIME = (1439, 59) is the last one ?

5 Answers   IBM,


What is a GDG

4 Answers   IBM,


what is the resolution for sb37 error

2 Answers   TCS,


what is A-MODE and R-MODE?

2 Answers  


TIME parameter in JOB statement or EXEC statement specifies What type of time (CPU time or execution time)?

5 Answers   CTS,


how many max steps can we use in a job? pls answer to my question

3 Answers   TCS,


how do you resolve for soc7 error

6 Answers   ACS, iGate,


GDG Create syntax ?

4 Answers   Xansa,


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

0 Answers   IBM,


What is the meaning of data definition name (ddname) and dataset name (dsname) in the DD statement?

2 Answers  


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

0 Answers  


Why block size is multiple of lrecl in jcl?

0 Answers  


Categories