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

Problem in reading an online file in batch


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sajith79

New User


Joined: 28 Sep 2005
Posts: 2

PostPosted: Tue Dec 06, 2005 2:07 am
Reply with quote

hi,

i have a file which is opened in online.when i am trying to read a record from that file through a batch program it gives read error even though that particulare record is present. the job abends for the same. and if you restart the job it works fine. this is a production job and keeps abending almost daily. can anyone help me to resolve this. the file is an IAM file.

thanks
sajith
Back to top
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 677
Location: NJ

PostPosted: Tue Dec 06, 2005 10:58 am
Reply with quote

hi frnd,
Can u say what's the abend that u r getting ... is it like U4038 or some thing related to that???
Back to top
View user's profile Send private message
mak_tcs

New User


Joined: 23 Nov 2005
Posts: 69
Location: Minneapolis, MN USA

PostPosted: Tue Dec 06, 2005 7:10 pm
Reply with quote

Hi,

My View regarding this abend is..

Program actually trying to access the File which is opened in CICS region. But abends since the file is opened in CICs region. In the abend step, they wud have asked the system to close the file in CICS region if the program terminated abruptly. So when U restart the job, it faces no problem.

What we follow in our project is, We do have steps in the JCL which close all the online file before executing a Program and Open again when the Execution of the program ends.

Hope the above information will be useful.. Please share ur opinion!!

Thanks,
Mani
Back to top
View user's profile Send private message
sajith79

New User


Joined: 28 Sep 2005
Posts: 2

PostPosted: Tue Dec 06, 2005 8:31 pm
Reply with quote

thanks for the update. but this is not at all related to opening and closing of files. even if it is opened in CICS region we can read that file in batch. this is abending just because it failes to find out the particular record in that file and not because of file opened in CICS. the file is actually an IAM file and not VSAM
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Binary File format getting change whi... All Other Mainframe Topics 7
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
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
Search our Forums:

Back to Top