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

doubt on copybook


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
karthikuma

New User


Joined: 29 Mar 2005
Posts: 62

PostPosted: Wed Jun 08, 2005 10:25 am
Reply with quote

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
View user's profile Send private message
Deepa.m

New User


Joined: 28 Apr 2005
Posts: 99

PostPosted: Wed Jun 08, 2005 11:47 am
Reply with quote

Can you be more clear..what relation does this copybook have with FD variable.?
Back to top
View user's profile Send private message
Allu

New User


Joined: 08 Jun 2005
Posts: 4

PostPosted: Wed Jun 08, 2005 1:32 pm
Reply with quote

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
View user's profile Send private message
karthikuma

New User


Joined: 29 Mar 2005
Posts: 62

PostPosted: Thu Jun 09, 2005 9:19 am
Reply with quote

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
View user's profile Send private message
kanak

Moderator


Joined: 12 Mar 2005
Posts: 252
Location: India

PostPosted: Thu Jun 09, 2005 11:13 am
Reply with quote

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.
icon_question.gif 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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts Trying to change copybook in online c... CICS 4
No new posts Help to Filter File Manager Copybook ... DFSORT/ICETOOL 14
No new posts Need to add field to copybook, proble... COBOL Programming 14
No new posts Recompiling programs after a copybook... COBOL Programming 1
Search our Forums:

Back to Top