Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 757
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: 757
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 Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us