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 opening error in PL/1

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
ponkala

New User


Joined: 04 Aug 2008
Posts: 6
Location: chennai

PostPosted: Tue Sep 09, 2008 4:03 pm    Post subject: File opening error in PL/1
Reply with quote

In Pl/1 while opening the file i might get various file errors. How to handle those errors
For Ex: In COBOL if i handle file status not equal to zero then we can identify there is an error occured while opening. How to identify the same in PL/1?


We have the same error for READ,WRITE,LOCATE(SET) also.How to handle?
Back to top
View user's profile Send private message

hchinnam

New User


Joined: 18 Oct 2006
Posts: 73

PostPosted: Tue Sep 09, 2008 4:28 pm    Post subject:
Reply with quote

using ON.

You have something like ON ERROR, ON CODE etc... you can use them for file handling
Back to top
View user's profile Send private message
ponkala

New User


Joined: 04 Aug 2008
Posts: 6
Location: chennai

PostPosted: Tue Sep 09, 2008 4:54 pm    Post subject:
Reply with quote

Thanks for your replay.

But,ON CODE,ON SIZE ERROR, .. these are all done in COBOL.

I want to solve the problem in PL/1.Could you help me to solve it?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8118
Location: East Dubuque, Illinois, USA

PostPosted: Tue Sep 09, 2008 5:07 pm    Post subject:
Reply with quote

ponkala: ON is a PL/I construct. Read the Language Reference manual from the link at the top of the page and you'll find the ON units in PL/I refer in turn to an entire chapter on the different conditionals that can be intercepted -- ENDFILE, CONVERSION, KEY, SIZE being among them.
Back to top
View user's profile Send private message
ponkala

New User


Joined: 04 Aug 2008
Posts: 6
Location: chennai

PostPosted: Wed Sep 10, 2008 2:52 pm    Post subject:
Reply with quote

Thanks Robert.

I solved that problem.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8118
Location: East Dubuque, Illinois, USA

PostPosted: Wed Sep 10, 2008 4:53 pm    Post subject:
Reply with quote

ponkala -- great to hear! icon_smile.gif
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 -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Mainframe Opening in Chennai ( 2 to 4... muralikrishnan_new Mainframe Jobs 0 Tue Jul 18, 2017 2:20 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm


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