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 How to update a portion of text in a ... Bill Woodger DFSORT/ICETOOL 25 Wed Nov 09, 2016 9:41 pm
No new posts Error IEC161I 052(009,XXXRS00)-084 wh... amitc23 JCL & VSAM 10 Wed Oct 12, 2016 5:00 pm
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm
No new posts sort with previous record anatol DFSORT/ICETOOL 9 Thu Oct 06, 2016 2:36 am
No new posts Get Record count in summary record fo... Atul Banke DFSORT/ICETOOL 21 Fri Sep 23, 2016 4:17 pm


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