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
What is the difference between PIC 9.99 and PIC9v99?
) How do u handle errors in BMS macro?
how can i see junk values in dclgen or in hostvariable of comp ?
What are declaratives and what are their uses in cobol?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
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
What is the difference between perform … with test after and perform … with test before?
explain sorting techniques in cobol program?
What is report-item in COBOL?
Name the divisions, which are available in a cobol program?
Can we change the password using ALTER? anyone tried and changed?
I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.
What are the different rules for performing sort operation?
What are literals?
Which division and paragraphs are mandatory for a COBOL program?