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
 
how to write a record into a vsam fille?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
rushing

New User


Joined: 25 May 2005
Posts: 13
Location: DaLian?China

PostPosted: Fri Jul 01, 2005 1:22 pm    Post subject: how to write a record into a vsam fille?
Reply with quote

hi ,
i want to write one record into an exist vasm file,then how can i do it in the cobol program.
i have done it but failed at runtime,and the sysoutmessage is:
IGZ0003W A logic error occurred for file INFILE in program FINDIS at relative INFILE in program FINDIS at relative location X'0376'.
plz tell me how can i write a record into a vsam file successfully?thanks.[/quote][/code]
Back to top
View user's profile Send private message

nagasri83

New User


Joined: 20 May 2005
Posts: 15
Location: chennai

PostPosted: Fri Jul 01, 2005 4:06 pm    Post subject:
Reply with quote

hi friend,

here you have mentioned that the logic error has occured and you have given the offset address. we cannot have what exactly happened in your case.
reasons may be
1) the record length may mismatch.
2) the attributes may be mismatched like the vsam key length is 5 and your trying with the some other length.

simple syntax is "WRITE RECORD-NAME". this is the simple syntax used to write a record into VSAM file. hope this information is useful to you.

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

New User


Joined: 25 May 2005
Posts: 13
Location: DaLian?China

PostPosted: Wed Jul 06, 2005 2:55 pm    Post subject:
Reply with quote

Thank you very much, nagasri83
i have solved this problem.
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 -> Mainframe Interview Questions 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 write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts VSAM RLS Wait time blayek JCL & VSAM 2 Mon Oct 02, 2017 9:05 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Repeat part of record multiple times Learncoholic DFSORT/ICETOOL 4 Tue Aug 29, 2017 11:33 am

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