Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts LIBDEF not working in called proc packerm CLIST & REXX 0 Fri Sep 15, 2017 7:22 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us