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: 755
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: 755
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 Testing rerad cursor for status with ... John F Dutcher DB2 8 Fri May 19, 2017 9:35 pm
No new posts Job failing with USER = 4093 REASON C... Pradeepa S ABENDS & Debugging 1 Wed May 17, 2017 3:35 pm
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Dump analysis of an assembler module monica1 PL/I & Assembler 4 Tue May 09, 2017 10:05 am
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm


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