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...

Program A calls program B. Will the working storage
variables declared in program B be initialized every time
it is called by program A or will the values be retained
until the end of program A?

Answer Posted / s.rajagopalan

none of the above answer is correct.
In static call the working storage varibales is not
initialised when the sub program is called. It retains the
latest values of ws variables in the subrpogram.

In case of dynamic call if you use "cancel" stament then
the ws variables of the sub program are initialised.
if you dont use cancel statement and call the subprogram
then the latest values are retained for the WS vriables.

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?

8020


if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need

1381


IF I mention stop run in CICS what happens?

2424


How to print 10 to 1 if the input have only 10 digit number?

1304


What is the problem of ordered sequential files access?

1205


What is inspect in cobol ?

1352


What is redefines clause in COBOL?

1346


How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?

1262


Discuss about changing dataset name in proc.

1289


How arrays can be defined in COBOL?

1293


For rewrite, why is it mandatory that file needs to be opened?

1149


What is the difference between goback, stop run and exit program in cobol?

1642


how do you reference the esds vsam file formats from cobol programs

1265


What are different data types in cobol?

1382


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

2603