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 ?
Answers were Sorted based on User's Feedback
Answer / kiran
There is no limit.... we can write n number of sub programs
in main pgm.
by using linkage section in data division in sub program
by using IS GLOBAL keyword
ex 01 name pic x(10) IS Global
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / 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 |
hw to create 3 dimensional array & hw to access it?
i want all ERRORS codes in COBOL ,JCL,VSAM ,DB2,CICS
in a indexed file what is procedure for read the records from 12 to 18. please give the code example
When and how can we use index & subscript ?
How can we find out wether to declare the data items like Integer, Char,Comp? If comp types how can we decide wether it is Comp and Comp3.How it is? Please Explain... Cheers.
What is the use of LINKAGE SECTION?
what is redefines? where it can be effectively use for the purpose of memory utilization? give an example?
Suppose i have a variable with s9(18)v99 comp3 . what is the size of variable . If s9(18) comp3 is 10 bytes . There should be some difference between two allocations ? Thanks krishna chaitanya
In EBCDIC, how would the number 1234 be stored?
How do u find the programs calling the given module, without having doing 3.13 on loadlib/source library?
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 ?
What does the INITIALIZE verb do?