MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Assembler program abending 3408

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
somuk
Beginner


Joined: 04 Feb 2003
Posts: 113
Topics: 37

PostPosted: Thu May 22, 2003 4:10 am    Post subject: Assembler program abending 3408 Reply with quote

Hi,
I have written a small assembler program for reading a file and writing into another.
My program is abending with 3408. But the output file has been written properly.

The DCBs' has been defined in the program as follows
Code:

INDCB    DCB DSORG=PS,MACRF=(GM),DDNAME=SYSIN,EODAD=FINISH,    X
               RECFM=FB,LRECL=80,BLKSIZE=4080   
                       
OUTDCB   DCB DSORG=PS,MACRF=(PM),DDNAME=OUTPUT,               X 
               RECFM=FBA,LRECL=133,BLKSIZE=3990                         

Can anybody tell me the reason for this..?

Thanks
-Somu
Back to top
View user's profile Send private message Yahoo Messenger
RonB
Beginner


Joined: 02 Dec 2002
Posts: 93
Topics: 0
Location: Orlando, FL

PostPosted: Thu May 22, 2003 9:18 pm    Post subject: Reply with quote

Whatever value is contained in Register 15 when a program terminates is considered to be the program's Return Code. If you don't set it to zero in your program, it would be difficult to predict what it might contain - perhaps a storage address?

Ron
_________________
A computer once beat me at chess, but it was no match for me at kick boxing.
Back to top
View user's profile Send private message
somuk
Beginner


Joined: 04 Feb 2003
Posts: 113
Topics: 37

PostPosted: Fri May 23, 2003 7:18 am    Post subject: Reply with quote

Thanks Ron. As you told I was not setting 15 to zero. I gave a XR 15,15 and it started working fine.

Regds
-Somu
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group