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

writing record in esds file after intializing


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
santosh100678

New User


Joined: 21 Sep 2009
Posts: 55
Location: Kolkatta

PostPosted: Thu Sep 24, 2009 7:56 pm
Reply with quote

Hi,

requirement is writing record in empty ESDS file thro sequential file input.

For this i do following steps .
1.I have already one program in library which intilize the file
means thro' jcl i intilize the file, but when i want to write record in esds
file thro' sequential file then always I use extend mode for writing record in ESDS esds file .when i open my esds file in output mode or Input-output mode then unable to insert face file satus=48.
Then i check this file record after initializing then found that one blank record is inserted always .
Back to top
View user's profile Send private message
rexzone1

New User


Joined: 16 Dec 2006
Posts: 14
Location: Halifax, Canada

PostPosted: Wed Dec 30, 2009 12:34 am
Reply with quote

Satish,

Please provide some more clarification on the issue you are facing.
Also provide the job step that you are using.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Dec 30, 2009 1:06 am
Reply with quote

A file status 48 means
Quote:
The execution of a WRITE statement was
attempted on a file not open in the
I-O, output, or extend mode.
so either your OPEN is failing or your program logic is wrong. Please use BBcode and post the JCL DD statement for your ESDS file, the SELECT statement, the OPEN you are using, and the WRITE that is getting the 48 file status code.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top