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

What are 77 levels used for?

882


how to access the file from prodution from changeman tool and to submit a file to production

7167


What is the local-storage section?

933


Describe the cobol database components?

943


write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc

1034


what is search and searchall?what is the diffrence between them?give an best example?

6293


What is the compute verb? How is it used?

895


INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

670


How do you reference the following file formats from cobol programs?

968


Explain about different table spaces.

898


In COBOL programming, what is PERFORM? What is VARYING?

917


If you are current on the owner of a set, what is the difference between obtain next and obtain first?

911


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?

7378


Explain how you can characterize tables in cobol?

849


how do you reference the rrds file formats from cobol programs

1203