View previous topic :: View next topic
|
Author |
Message |
raman.k
New User
Joined: 26 Feb 2007 Posts: 24 Location: chennai
|
|
|
|
Hi
I attend one interview. the interviewer asked the question how to pass the 10 bytes value to COBOL program
I told like.
i declare the variable in LINKAGE SECTION then i Mention in PROCEDURE DIVISION USING A.
He told it is wrong.
I don't how to pass this value
Please tell me
Raman.l |
|
Back to top |
|
|
raman.k
New User
Joined: 26 Feb 2007 Posts: 24 Location: chennai
|
|
|
|
raman.k wrote: |
Hi
I attend one interview. the interviewer asked the question how to pass the 10 bytes value from JCL to COBOL called program
I told like.
i declare the variable in LINKAGE SECTION then i Mention in PROCEDURE DIVISION USING A.
He told it is wrong.
I don't how to pass this value
Please tell me
Raman.l |
|
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
To pass it down to the called program, you just reference your (the calling) program's working storage in the CALL verb, i.e., "CALL SUBROUTINE USING WS-DATA-AREA".
Your original answer was more on the mark for the called program rather than the calling program. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
If this was a JCL question, the answer would include using a PARM on the EXEC for the COBOL program along with the LINKAGE/PROCEDURE considerations.
Was the interviewer knowledgeable about COBOL/JCL or was it a personnel/hr person who had a list of questions and was told what to accept as answers. |
|
Back to top |
|
|
|