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

How can you get the ksds file records into your cobol program?

639


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

672


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

770


Why did you choose to work with ibm mainframe cobol programming?

627


Which mode is used to operate the sequential file?

658






how can i see junk values in dclgen or in hostvariable of comp ?

2541


how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)

1922


What is Pic 9v99 Indicates in COBOL?

722


State the various causes of s0c1, s0c5 and s0c7.

658


What is the Purpose of POINTER Phrase in STRING command in COBOL?

714


Can you please let me know the centre name of INS certification in Kolkata.

1713


What is rmode(any) ?

681


how to refer the data field?

1803


what is the use of outrecord?

1768


How do get the result of your program directly on your pc?

1878