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
 

 

JCL: What will PARM-DATA1 contain

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    Post subject: JCL: What will PARM-DATA1 contain
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: 2150
Location: At my coffee table

PostPosted: Tue Sep 18, 2007 7:06 pm    Post subject:
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    Post subject:
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: 1452
Location: Chicago, IL

PostPosted: Wed Sep 19, 2007 8:26 am    Post subject: Reply to: JCL
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    Post subject: About JCL
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: 1439
Location: Bangalore,India

PostPosted: Wed Sep 19, 2007 12:46 pm    Post subject:
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

Site Director


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

PostPosted: Wed Sep 19, 2007 12:49 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Wed Sep 19, 2007 12:55 pm    Post subject:
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.    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 Using 'parm' to vary SORTOUT record v... Sysaron DFSORT/ICETOOL 13 Wed Sep 07, 2016 9:24 pm
No new posts Copy a particular column based on PAR... brindhamohan DFSORT/ICETOOL 5 Wed May 11, 2016 8:49 am
No new posts Use of Parm in SORT Ambili S DFSORT/ICETOOL 2 Mon May 09, 2016 9:16 pm
No new posts symbolic parm - allocate dsn krrp JCL & VSAM 11 Sat Oct 31, 2015 8:27 pm
No new posts EXEC SORT,REGION=0M,PARM=ELAP venugopal.mft DFSORT/ICETOOL 4 Wed May 20, 2015 12:45 pm


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