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
 

 

When write stmt executes the Record layout becomes spaces

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: When write stmt executes the Record layout becomes spaces
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    Post subject:
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    Post subject: Re: When write stmt executes the Record layout becomes space
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    Post subject:
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    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 Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts Need to write record of PS File in ex... Chandan1993 JCL & VSAM 1 Wed Jun 07, 2017 1:35 am
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm


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