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
 

 

Regardinf FD entries for variable block

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Regardinf FD entries for variable block
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: 1439
Location: Bangalore,India

PostPosted: Sat Jan 05, 2008 5:51 pm    Post subject:
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    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 Can I traverse a STEM variable? chong.zhou CLIST & REXX 5 Wed May 31, 2017 3:54 pm
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Writing on to GSAM variable length rohanthengal JCL & VSAM 6 Fri Mar 03, 2017 7:46 pm
No new posts Count Trailing Spaces in variable str... Virendra Shambharkar SYNCSORT 10 Thu Feb 02, 2017 12:23 pm


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