Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
variable record lengh in cobol & Jcl

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
bhaskarkdp

New User


Joined: 18 Aug 2008
Posts: 2
Location: bangalore

PostPosted: Tue Aug 19, 2008 3:14 pm    Post subject: variable record lengh in cobol & Jcl
Reply with quote

Hi,

cobol file having varibale length 200, how to declare this file in FD(lable records...) and in 01 rec1 and in JCL (in DCB) ?

Thanks,
Bachi
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Tue Aug 19, 2008 3:21 pm    Post subject:
Reply with quote

Take a look at the manual for the JCL part

Click HERE to read the manual
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Tue Aug 19, 2008 3:25 pm    Post subject:
Reply with quote

Have your tried anything?
what is the error you are getting?
if yes post the error and code..
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Tue Aug 19, 2008 3:39 pm    Post subject: Re: variable record lengh in cobol & Jcl
Reply with quote

Hi,
bhaskarkdp wrote:
cobol file having varibale length 200, how to declare this file in FD(lable records...) and in 01 rec1 and in JCL (in DCB) ?
Something like -
Code:
FD  IN-FILE         
    RECORDING MODE V           
    LABEL RECORDS ARE STANDARD
    BLOCK CONTAINS 0 RECORDS. 
where IN-FILE is input file.

And in this
Quote:
cobol file having varibale length 200
Does "200" includes RDW ? If yes, then in DCB LRECL would be 200 else 204 (added 4 for RDW). You can search for DCB in the link posted by Expat, it has some examples as well & better explanations..

Hope this helps...
Back to top
View user's profile Send private message
bhaskarkdp

New User


Joined: 18 Aug 2008
Posts: 2
Location: bangalore

PostPosted: Tue Aug 19, 2008 4:00 pm    Post subject: Re: variable record lengh in cobol & Jcl
Reply with quote

bhaskarkdp wrote:
Hi,

cobol file having varibale length 200, how to declare this file in FD(lable records...) and in 01 rec1 and in JCL (in DCB) ?

Thanks,
Bachi



I have seen in some books like

FD infile
recording mode is V
record is varying in size from <starting> to <ending>
depending on <some varibale>

what it means? In my requirement variable length record is 200. Please let me know how to code in FD.

Thanks,
Bhaskar
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Tue Aug 19, 2008 4:33 pm    Post subject: Re: variable record lengh in cobol & Jcl
Reply with quote

Hi,
bhaskarkdp wrote:
I have seen in some books like
Probably they were for AS400..
Quote:
what it means? In my requirement variable length record is 200. Please let me know how to code in FD.
Please check this link -

http://publib.boulder.ibm.com/infocenter/iadthelp/v7r0/index.jsp?topic=/com.ibm.etools.iseries.pgmgd.doc/c0925405409.htm

It should give you a start..
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: Tue Aug 19, 2008 9:57 pm    Post subject:
Reply with quote

Hello Bachi and welcome to the forums,

If your record length is 200 only, why is this defined as a variable length file?

The first order of business is to determine if you have variable length or fixed length data. What are the attributes shown if you use tso/ispf 3.4 and display the information about the file? If you post what is shown for these attributes, it will help us help you:
Code:
Organization  . . . : PS   
Record format . . . : FB   
Record length . . . : 80   
Block size  . . . . : 27920
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us