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 .
Joined: 06 Jun 2008 Posts: 8280 Location: Dubuque, Iowa, USA
A file status 48 means
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.