View previous topic :: View next topic
|
Author |
Message |
karthikuma
New User
Joined: 29 Mar 2005 Posts: 62
|
|
|
|
hi,
if i'm changing the field length from x(4) to x(6) in copybook,but i've declared the varible in file description as 01 a pic x(100),then what's the change has to make in pic x(100).this is an interview questions.plz any one give ma an sugestion.
regards,
kumar |
|
Back to top |
|
|
Deepa.m
New User
Joined: 28 Apr 2005 Posts: 99
|
|
|
|
Can you be more clear..what relation does this copybook have with FD variable.? |
|
Back to top |
|
|
Allu
New User
Joined: 08 Jun 2005 Posts: 4
|
|
|
|
Hi,
I think you are moving this copybook data to the FD declared layout.
If so just increase the record length as X(102) and made changes in JCL(LRECL=102).
This is from my understanding, If I am wrong pls let me know
Thanx
Allu |
|
Back to top |
|
|
karthikuma
New User
Joined: 29 Mar 2005 Posts: 62
|
|
|
|
hi friend,
plz give me an correct solutions,y should i have to increase to x(102),if i'm increasing the field length means whether i've to change the pic class also...plz give me an good idea with example.
regards,
kumar |
|
Back to top |
|
|
kanak
Moderator
Joined: 12 Mar 2005 Posts: 252 Location: India
|
|
|
|
hi kumar,
If you just changing the varibale then check which type of varibale it is like comp, comp-2 or comp-3. Based upon that see what is the size it is going to affect.
But as you mention in ur problem it is just X(4) to X(6), then over all length is going to change by 2 so you need to change the 01 level from 100 to 102. Same as in JCL as mentioned in other post.
As mentioned in all the previous post is it layout for any file defined in input-output section, please clear this doubt?
Hope i made your doubt clear. Let us know if you have any concerns. |
|
Back to top |
|
|
|