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 |
can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech
How do u find the programs calling the given module, without having doing 3.13 on loadlib/source library?
what is the difference between external and global variables?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
hie everyone.i just completed my b.tech in electronics and joined mainframes course.am i doing right course for my better future?please help me with your suggestions.ill be very thankful to you guys.
how to display date in reverse order if the pic clause of the is numeric suppose date is 09032010 ==> need to print in 20100309 (pic clause is numeric)
What is the use of EVALUATE statement?
Mention the guidelines to write a structured cobol program?
what are the steps to sort in a cobol program?
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
What are options have been removed in COBOL 11?
In COBOL "BEFORE" advancing is there or not ?