is this below syntax correct?
CALL 'subprg' using A,B
Please help
Answers were Sorted based on User's Feedback
Answer / lu
yes, ...look at this ex:
For calling sub-modules DYNAMICALLY - Code:
In Working Storage Section -
01 WS-PROGRAM PIC X(08).
MOVE 'SUBPROGA' TO WS-PROGRAM
CALL WS-PROGRAM USING ....(Your Parameters)
MOVE 'SUBPROGB' TO WS-PROGRAM
CALL WS-PROGRAM USING ....(Your Parameters)
MOVE 'SUBPROGC' TO WS-PROGRAM
CALL WS-PROGRAM USING ....(Your Parameters)
For Calling STATICALLY, check your compiler option. If it
is NODYNAM then use -
Code:
CALL 'SUBPROGA' USING ...(Your parameters)
CALL 'SUBPROGB' USING ...(Your parameters)
CALL 'SUBPROGC' USING ...(Your parameters)
| Is This Answer Correct ? | 9 Yes | 1 No |
Answer / billyboyo
Yes, your syntax is correct.
This is using the "call literal" option of IBM Cobol. If
you do need the call to be dynamic, specify the DYNAM
option on the compile.
If you were to have used "call data-name" then the call is
perforce dynamic and unaffected by DYNAM/NODYNAM compile
option.
| Is This Answer Correct ? | 0 Yes | 0 No |
how we can edit records in vsam data set and non vsam data sets
in how many mode we can open a file ?
i have a file which contains records like 10,30,90,50,20,40,80,60,70 i want to display these records in reverse order like 70,60,80,40,20,50,90,30,10 please give me the cobol code (do not sort the records)
3 Answers Cap Gemini, Mind Tree,
Write a program to concert an Indexed file into Sequential file?
How arrays can be defined in COBOL?
We are using the searching a table which is indexed, once the key is found, how can we get the occurance at which the key was found.
how to remove leading spaces and zeroes in a cobol variable.is there any easy way to do it
What does the IS NUMERIC clause establish ?
If my file contains 100,000 records and job abended at 55,000th records processing then how can i restart job from that record onward by ignoring that record. I can not edit the file as file size is big and it is getting browse substituted?
Write the code implementing the perform … varying.
How to resolve the soc4 & soc7 other than following answers. Soc4 can resolved using mispleed dd name and dd name is not matching with file and soc7 check the sysdump and copy the offest address then correct it in the program.
10 Answers ADP, Amdocs, Cap Gemini, Keane India Ltd, Super Value, TCS,
how can i see junk values in dclgen or in hostvariable of comp ?