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
 

 

How do we check the file status code in Assembler

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

Active User


Joined: 29 Dec 2005
Posts: 181
Location: Canada

PostPosted: Tue Sep 12, 2006 4:40 pm    Post subject: How do we check the file status code in Assembler
Reply with quote

Hi,

How do we check the file status code in Assembler???
I mean, if I open a file, then in COBOL we check if the open was sucessful using file status code, which we mention in SELECT clause.

How do we do that in Assembler??? how do I check if my file operation was sucessful???

Thanks for all the info you can provide.

ap_mainframes
Back to top
View user's profile Send private message

UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 743
Location: Germany

PostPosted: Wed Sep 13, 2006 2:07 pm    Post subject:
Reply with quote

Hi !

Example:

OPEN IN01(INPUT)
LTR R15,R15 ...CODE IN R15
BZ DoSomeThing ...R15 = Zero = Ok

... ... ...

CLOSE IN01
LTR R15,R15 ...CODE IN R15
BZ StopRun ...R15 = Zero = Ok ...R15 = NULL IST OK
Back to top
View user's profile Send private message
ap_mainframes

Active User


Joined: 29 Dec 2005
Posts: 181
Location: Canada

PostPosted: Wed Sep 13, 2006 3:12 pm    Post subject:
Reply with quote

Thanks! But why only Register 15???
Cant it be anything other than R15 ???Does the return code come in R15 only??? Why not in other registers???
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 743
Location: Germany

PostPosted: Wed Sep 13, 2006 3:39 pm    Post subject:
Reply with quote

Cause you are using IBM-Systemmacros. These macros or programmse alle apply to the standard IBM Register conventions.

Regards, UmeySan
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
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 0 Thu Jan 12, 2017 12:02 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts A not very Christmassy PL/I tale, wit... prino PL/I & Assembler 3 Mon Dec 26, 2016 1:01 am


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