IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

JCL: What will PARM-DATA1 contain


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic  
Author Message
Lavanya_Dhushetty
Warnings : 2

New User


Joined: 30 Aug 2007
Posts: 24
Location: Chennai

PostPosted: Tue Sep 18, 2007 6:56 pm
Reply with quote

Suppose the following is coded in linkage section:

LINKAGE SECTION
01 PARM-DATA1 PIC S9(4) COMP.
01 PARM-DATA2 PIC X(4).

What will PARM-DATA1 contain?

Answers:
a. Zeros
b. Length of the parm passed through JCL
c. Value of first 4 byte of data passed through JCL
d. None of the listed options
e. Value of first 2 byte data passed through JCL
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Tue Sep 18, 2007 7:06 pm
Reply with quote

What do you think?
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Tue Sep 18, 2007 8:47 pm
Reply with quote

Quote:
Lavanya_Dhushetty

I believe you are having lots of exam/interview questions, post all at once.
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Wed Sep 19, 2007 8:26 am
Reply with quote

Lavanya,

The answer for this question is Length of the parm passed through JCL.

If you'r astonished finding comments on your question, just take it on a healthy note and try to do a little excersice here before you post your questions. icon_smile.gif
Back to top
View user's profile Send private message
Lavanya_Dhushetty
Warnings : 2

New User


Joined: 30 Aug 2007
Posts: 24
Location: Chennai

PostPosted: Wed Sep 19, 2007 12:25 pm
Reply with quote

Suppose the following is coded in linkage section:

LINKAGE SECTION
01 PARM-DATA1 PIC S(4) COMP.
01 PARM-DATA2 PIC X(4).

What will PARM-DATA1 contain?

Answers:
a. Zeros
b. Length of the parm passed through JCL
c. Value of first 4 byte of data passed through JCL
d. None of the listed options
e. Value of first 2 byte data passed through JCL
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Wed Sep 19, 2007 12:46 pm
Reply with quote

Kiran,

Quote:
Please tell us is your code called or calling program ?

How does it differ for called or calling program?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Wed Sep 19, 2007 12:49 pm
Reply with quote

Hello Lavanya,

Is there some reason you started this topic a second time?

You were already given the answer in the original topic.

Kiran -
Quote:
Ans 'e' when the program is mainprogram,
This is incorrect. When a parm is passed from jcl, PARM-DATA1 will contian the length of the parm.
Back to top
View user's profile Send private message
kgumraj2

New User


Joined: 01 Aug 2007
Posts: 42
Location: Hyderabad

PostPosted: Wed Sep 19, 2007 12:52 pm
Reply with quote

Called program will have the values from the calling program, then The ans whould be 'D' as we dont know what we pass in the calling program.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Wed Sep 19, 2007 12:55 pm
Reply with quote

Hello Kiran,

Please read the topic before posting your thought. There is no mention of a called program in the question.

You made a similar assumption in your previous reply in this topic.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies. View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts JCL EXEC PARM data in C Java & MQSeries 2
No new posts Need to specify PARM='POSIX(ON) Java & MQSeries 4
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts Passing parm from JCL to Assembler, b... PL/I & Assembler 2
No new posts Using PARM=('JPn"&SYMBOL&quo... DFSORT/ICETOOL 2
Search our Forums:

Back to Top