View previous topic :: View next topic
|
Author |
Message |
bhaskarkdp
New User
Joined: 18 Aug 2008 Posts: 2 Location: bangalore
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
Back to top |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
Have your tried anything?
what is the error you are getting?
if yes post the error and code.. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
bhaskarkdp
New User
Joined: 18 Aug 2008 Posts: 2 Location: bangalore
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|