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

When write stmt executes the Record layout becomes spaces


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

New User


Joined: 11 Jun 2005
Posts: 1

PostPosted: Tue Jun 14, 2005 3:06 pm
Reply with quote

I am running a batch program, where the a variable file is written. For the first five records the record layout i.e., the declaration in the FD section becomes empty when executing the write statement and the record is written. After the 5 record it is writing properly. Any has any idea of what could be the problem is?
Back to top
View user's profile Send private message
pkmainframe

New User


Joined: 14 Jun 2005
Posts: 16
Location: India

PostPosted: Tue Jun 14, 2005 5:33 pm
Reply with quote

I guess this is because of the VB, while in VB the 1st 4 bytes for the record descriptor, you must start reading the input file after declaring the variable with comp of 4 bytes to avoid try this it may work, if it doesn't send more details of the record structure.
Back to top
View user's profile Send private message
arunoday

New User


Joined: 17 May 2005
Posts: 18
Location: Bangalore

PostPosted: Tue Jun 14, 2005 5:51 pm
Reply with quote

Hi PK,

I couldnot make out the VB. icon_exclaim.gif What is that ?

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

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Thu Jun 16, 2005 6:40 am
Reply with quote

Hi D,

You'll have to show us the actual FD; the moves to/from the rec description; the read/write stmts.

Also the DD stmts from the JCL especially the DCB info.
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 Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
Search our Forums:

Back to Top