how many subpgms we can use in a main pgm ?
how do u link sub pgm to main pgm ?
how can i use the parameters declared in main pgm to sub pgm ?

Answer Posted / sen

Same as kiran said
But to get the parameters used in tha main program can be used by {procedure division using var-1,var-2} in the sub program
Eg if ur var name is ws-1 and ws-2
Then we can get values by
Procedure division using ws-1,ws-2.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc

1055


What type of SDLC u followed? Why?

1745


How do you reference the fixed block file formats from cobol programs

945


What are the rules of the move verb?

973


How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?

2365


Are you comfortable in cobol or jcl?

823


how to convert the recors form vsam file to db2 table tru file aid

2998


How you can characterize tables in cobol?

945


What is the local-storage section?

905


What is the difference between comp and comp-3?

918


what is amode(24), amode(31), rmode(24) and rmode(any)?

908


how do you reference the rrds file formats from cobol programs

1177


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

901


EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

2310


what is the use of outrecord?

1989