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 declaratives and what are their uses in cobol?

695


What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

701


Write a program that uses move corresponding.

664


Can a Search can be done on a table with or without Index?

794


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

695






How to use the same COBOL program in Batch and CICS on lines? explain with an example

1904


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8120


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

1639


What is a SSRANGE and NOSSRANGE?

803


i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?

883


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

722


Write the code to count the sum of n natural numbers.

695


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

662


What are the rules of the move verb?

691


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

1706