Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to pass the 10 bytes value to COBOL called program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
raman.k

New User


Joined: 26 Feb 2007
Posts: 24
Location: chennai

PostPosted: Mon Mar 26, 2007 7:06 pm    Post subject: How to pass the 10 bytes value to COBOL called program
Reply with quote

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
View user's profile Send private message

raman.k

New User


Joined: 26 Feb 2007
Posts: 24
Location: chennai

PostPosted: Mon Mar 26, 2007 7:20 pm    Post subject: Re: How to pass the 10 bytes value to COBOL called program
Reply with quote

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
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Mon Mar 26, 2007 8:29 pm    Post subject:
Reply with quote

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
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Mar 26, 2007 10:18 pm    Post subject:
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Could we identify the called modules ... elixir1986 COBOL Programming 5 Fri Jul 14, 2017 1:53 am
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us