Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 VSAM - Accessing beyond record size Benchwarmer JCL & VSAM 6 Wed Apr 11, 2018 9:20 pm
No new posts Sort numeric fields with trailing spaces sancraig16 SYNCSORT 7 Tue Apr 03, 2018 1:21 am
No new posts write multiple lines in PS file in cobol Balu5491 COBOL Programming 7 Wed Mar 07, 2018 10:27 am
No new posts WRITE to VSAM giving duplicate RC picus_mf CICS 1 Fri Feb 23, 2018 2:52 pm
No new posts how to add the amount for duplicate r... SRUTHI DRAVIDAMANI COBOL Programming 6 Wed Feb 21, 2018 7:21 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us