Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
This topic is locked: you cannot edit posts or make replies. session stuck in TPX with status ACL amitc23 CA Products 1 Tue Dec 13, 2016 12:53 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
This topic is locked: you cannot edit posts or make replies. Natural ADABAS Opening with CTS enikhilk Mainframe Jobs 0 Wed Nov 30, 2016 5:37 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us