View previous topic :: View next topic
|
Author |
Message |
Lavanya_Dhushetty Warnings : 2 New User
Joined: 30 Aug 2007 Posts: 24 Location: Chennai
|
|
|
|
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 |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
What do you think? |
|
Back to top |
|
|
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
I believe you are having lots of exam/interview questions, post all at once. |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
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. |
|
Back to top |
|
|
Lavanya_Dhushetty Warnings : 2 New User
Joined: 30 Aug 2007 Posts: 24 Location: Chennai
|
|
|
|
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 |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Kiran,
Quote: |
Please tell us is your code called or calling program ? |
How does it differ for called or calling program? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
kgumraj2
New User
Joined: 01 Aug 2007 Posts: 42 Location: Hyderabad
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|