IBM MAINFRAME HELP & SUPPORT FORUMS
Technical Forums for IBM Mainframe Applications like COBOL, JCL, CICS, DB2, FileAid, DFSORT, Endevor, Xpediter, CoolGen, CA-7&11, AbendAid, IMS, IDMS, PL/I, MqSeries, SyncSort, Assembler, ChangeMan, Easytrieve, InterTest, REXX, CLIST etc...
 

how to insert data in a variable record length

THIS IS AN ARCHIVE FORUM: CLICK HERE TO GO TO THE ORIGINAL TOPIC

 
       IBMMAINFRAMES.com - IBM Mainframe Support Forums Index -> Mainframe COBOL
View previous topic :: View next topic  
Author Message
shekharmax



Joined: 26 Dec 2007
Posts: 3
Location: hyderabad

Posted: Mon Jul 07, 2008 2:59 pm    Post subject: how to insert data in a variable record length  

i have a file which have record varying in size depending on file length,
so how can i insert data in this kind of file.
Back to top  
dbzTHEdinosauer



Joined: 20 Oct 2006
Posts: 1639
Location: germany

Posted: Mon Jul 07, 2008 4:32 pm    Post subject:  

both READ and WRITE syntax provide for a record length field.

depends on how your 01's are defined for the records.

let us start with your select statement and your FD entry for the file.

provide that and we can provide suggestions.
Back to top  
 
       IBMMAINFRAMES.com - IBM Mainframe Support Forums Index -> Mainframe COBOL
Page 1 of 1
THIS IS AN ARCIVE FORUM IN READ ONLY MODE. IF YOU WANT TO ASK YOUR DOUBTS USE THE ACTUAL FORUM