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 

ASM: AMODE Display.

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


Joined: 14 Nov 2005
Posts: 1
Topics: 1

PostPosted: Mon Nov 14, 2005 3:04 am    Post subject: ASM: AMODE Display. Reply with quote

I am presently working in ASM-COB conversion testing project and have couple of queries.

1. I have asssembler AMODE 24 RMODE 24 program that calls COBOL2 program having RMODE 24 and AMODE 24. This call is done by BALR instruction (BALR 14,15). We are converting COBOL2 program to COBOL370 which is going to be AMODE 31 RMODE ANY. This call will fail due to compatibility issue. So as per IBM book manager we have written a macro, CEE2BK32 z/OS V1R4.0 Language Environment Bookshelf - SA22-7563-01, 14.2 Calling COBOL from Assembler , We have written a macro that will save the current mode in one reg, then convert BALR to BASSM and restore back the AMODE from the reg.

My query is whether just replacing BALR with BASSM won't take care of saving/restoring the mode.Do we really need to save and restore after call. Our test run seems to be working fine for just replacing BALR with BASSM. Any special case when this will fail?????

2. To ensure that BASSM is working, we need to prove the same with displays and so I would like to display PSW before and after the BASSM call. I know that R14 will contain the return address and we can display R14 before and after call but prefer to display PSW..Is there a way to display PSW itself?
Back to top
View user's profile Send private message
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