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 Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm
No new posts I can not compile my program PL1 V3.R... Miguel Fernandez PL/I & Assembler 13 Tue Dec 06, 2016 8:30 pm


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