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 job control language?

1150


Explain about LMFREE�free data set from its association with data ID

1678


If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?

1384


Name the parameters which can be used to limit the number of records written to a sysout dataset?

1205


How to submit a jcl from cics?

1207


How to override loadlib?

2117


What is the use of symbol // in jcl?

1543


Define concatenating?

1152


if the submitter of a job wants to inform another user about the job completion, how can it be done?

1305


Can I share my data with other jobs? How?

1197


IIN APITUDE THEY GAVE ONLY 10 QUESTIONS.. THEY ARE SIMPLE ONE FROM NUMBER SERIES,BOATS,TIME & DISTANCE,PROFIT &LOSS,FIND OUT THE NUMBER ? 9 25 4 36 81 64 49 AND surveillance SPELLINGS E.T.C

2225


How to pass data to a program that is coded in an exec statement?

1385


Must tape dataset definitions include vol=ser specifications?

1785


What is timing concept in mainframe?

2268


Can I send output of job to my remote device careerride123?

1198