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

how to write a record into a vsam fille?


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


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 Access to non cataloged VSAM file JCL & VSAM 18
Search our Forums:

Back to Top