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
 
File status '49' when opening file in I-O mode

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging
View previous topic :: :: View next topic  
Author Message
rajendraa

New User


Joined: 22 Dec 2006
Posts: 7
Location: Bangalore

PostPosted: Fri Dec 22, 2006 10:41 am    Post subject: File status '49' when opening file in I-O mode
Reply with quote

Hi,

I am using 2 files in my job.

Code:

//IN    DD    DSN=TD.OQ.TEST(MEMB1),DISP=SHR
//      DD    DSN=TD.OQ.TEST(MEMB2),DISP=SHR


I am opening IN-File in I-O mode in the program.

What the program should do:

If the first charater is '0' in any record of the files it should be updated with '1'.

Problem :
If the records in first file(MEMB1) matches the criteria it is updating with '1'
but if the record in second file(MEMB2) mathches the criteria, i am getting File status 49.


If i change the order of the files in the job, then records in MEMB2 are updated and getting error for record in MEMB1.


Code:

//IN    DD    DSN=TD.OQ.TEST(MEMB2),DISP=SHR
//      DD    DSN=TD.OQ.TEST(MEMB1),DISP=SHR


Any help on this would be appreciated.

Regards,
Raj
Back to top
View user's profile Send private message

prafull

New User


Joined: 08 Dec 2006
Posts: 48

PostPosted: Fri Dec 22, 2006 11:01 am    Post subject:
Reply with quote

Hi rajendraa,
did not get your problem exactly but watever I understood I would suggest,,
merge the files MEMB1 ,MEMB2 into a new file say MEMB3..
Now open MEMB3 in I-O mode..
and apply your logic..
It should work..
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Fri Dec 22, 2006 5:38 pm    Post subject: Re: File status '49'
Reply with quote

rajendraa wrote:
I am opening IN-File in I-O mode in the program.

If the records in first file(MEMB1) matches the criteria it is updating with '1'
but if the record in second file(MEMB2) mathches the criteria, i am getting File status 49.

If i change the order of the files in the job, then records in MEMB2 are updated and getting error for record in MEMB1.


Since the pds members were concatenated, I would think that the input would be seamless.

File status 49 reads: The execution of a DELETE or REWRITE statement was attempted on a file not open in the I-O mode.

Unless somebody knows why concatenated pds members can't be accessed in I-O mode, sounds a bit like a bug...... icon_eek.gif
Back to top
View user's profile Send private message
rameshbe

New User


Joined: 21 Jul 2006
Posts: 1

PostPosted: Fri Jan 12, 2007 7:43 pm    Post subject:
Reply with quote

hai rajendra,

file status 49 is

The execution of a DELETE or REWRITE
statement was attempted on a file not open
in the I-O mode.

in thsi case fs 49 will come may be u r not opening the second file in i-o mode that may be the reason please check that once ..

i think this may hlps u ..

Regards
Ramesh
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sat Jan 13, 2007 1:29 am    Post subject:
Reply with quote

Hello,

If my memory can be trusted, i recall that trying to open concatenated pds members for i-o has problems. Again, if i recall correctly, the first member "works" but members 2 thru n may not.

A workaround might be to run 2 identical steps that process 1 member each.
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 -> ABENDS & Debugging All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
No new posts Moving a PS file as body of a mail! Vignesh Sid JCL & VSAM 4 Tue Nov 21, 2017 9:23 pm
No new posts unable to set RC = 4 when empty file migusd SYNCSORT 1 Tue Nov 21, 2017 1:21 am

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