MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Vsam problem

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
ayush
Beginner


Joined: 26 Feb 2004
Posts: 20
Topics: 14

PostPosted: Thu Jun 03, 2004 7:49 am    Post subject: Vsam problem Reply with quote

Hi,

I am trying to run a retrieval job and writing to a KSDS file from the IDMS Database.
However, the job abends and gives me the reason

A COBOL II U1020 abend occurred during execution of program PMVSAM.
An attempt to WRITE a record to file OUTFILE failed because the file was
not open in output, I-O or extend mode. This corresponds to file status
code 48. Neither FILE STATUS nor an ERROR declarative were specified in
the program and the job abended.


though i have coded "open output outfile and defined the code-fstat variable in the below described manner

OPEN OUTPUT OUT-FILE.
DISPLAY 'VSAM RETURN CODE' FSTAT-CODE.


when i lookinto the SYSOUT, i only get blanks for VSAM RETURN CODE Sad
Unable to detect the problem. Please suggest any solution.
Thanks.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
ayush
Beginner


Joined: 26 Feb 2004
Posts: 20
Topics: 14

PostPosted: Thu Jun 03, 2004 9:29 am    Post subject: Reply with quote

Hi Ravi,

Thanks. Its working now.
Giving a VSAM Status of 39.
Where can i find help regarding these status?

Thanks.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group