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

Regardinf FD entries for variable block


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

New User


Joined: 30 Jun 2007
Posts: 39
Location: India

PostPosted: Sat Jan 05, 2008 4:20 pm
Reply with quote

Hi friends,
i have an input file say payment file with FD entries as follows:

FD PAYMENT-FILE
RECORDING MODE IS V
[red] LABEL RECORDS ARE STANDARD[/RED]
RECORD IS VARYING FROM 1 TO 1988(OR SHOULD IT BE 4 TO 1992)
BLOCK CONTAINS 0 RECORDS
DATA RECORD IS PAYMENT-REC.
01 PAYMENT-REC PIC X(1988).

Now my ques is in jcl we will be declaring the DS as of length 1992 as it is variable block.
1. why are we leaving 4 bytes?
2.can we write LABEL RECORDS ARE STANDARD for variable block?
3. will the record is varying from clause be 1 to 1988/4 to 1992?i have tried with both but there is no difference in the o/p?whats the actual reason behind it?can you enlighten me regarding this?
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Sat Jan 05, 2008 5:51 pm
Reply with quote

banerjee,

At the top of every page, you have 'manuals' link. Go thru COBOL manual for the answers.
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 Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Variable Output file name DFSORT/ICETOOL 8
No new posts Moving Or setting POINTER to another ... COBOL Programming 2
No new posts parsing variable length/position data... DFSORT/ICETOOL 5
No new posts Masking variable size field - min 10 ... DFSORT/ICETOOL 4
Search our Forums:

Back to Top