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

How do we check the file status code in Assembler


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
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
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: 771
Location: Germany

PostPosted: Wed Sep 13, 2006 2:07 pm
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
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: 771
Location: Germany

PostPosted: Wed Sep 13, 2006 3:39 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
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
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top