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
 

 

doubt on copybook

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: doubt on copybook
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
Warnings : 1

New User


Joined: 28 Apr 2005
Posts: 99

PostPosted: Wed Jun 08, 2005 11:47 am    Post subject:
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    Post subject: Re: doubt on copybook
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    Post subject: Re: doubt on copybook
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    Post subject: Re: doubt on copybook
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Doubt in MFS abdulrafi IMS DB/DC 2 Fri Oct 21, 2016 3:09 pm
No new posts Copybook structure in Load module Vai123 COBOL Programming 7 Fri Sep 16, 2016 8:29 pm
No new posts Geneartion of COBOL copybook structre... murugan_mf COBOL Programming 3 Fri May 20, 2016 12:48 pm
No new posts View Copybook having COPY statement i... nkumar Compuware & Other Tools 6 Mon May 16, 2016 7:28 pm
No new posts JCL Utility in accordance to the copy... meetsupriyo JCL & VSAM 3 Tue Dec 08, 2015 8:46 pm


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