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

Calling module using BASSM


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vijay korde

New User


Joined: 19 Feb 2010
Posts: 27
Location: India

PostPosted: Tue May 25, 2010 3:48 pm
Reply with quote

Hello,

I am calling module using BASSM. But its returning to the start of the program instead of NSI.

The calling module has AMODE(24),RMODE(24) and the called module has AMODE(ANY), RMODE(31).

Can anybody advise on how to resolve this issue. Quick response is highly appreciated.

Thanks,
Vijay
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2504
Location: Atlanta, Georgia, USA

PostPosted: Tue May 25, 2010 5:43 pm
Reply with quote

Is the sub-program returning control to the caller via a BR 14 or a BSM (0,14)?

This forum's members are volunteers. This is NOT a group of individuals sitting on a cloud somewhere, with nothing to do.

Please be more considerate....

Bill
Back to top
View user's profile Send private message
vijay korde

New User


Joined: 19 Feb 2010
Posts: 27
Location: India

PostPosted: Tue May 25, 2010 6:00 pm
Reply with quote

Sorry for using the wrong statement. I will take care in future.

sub program is returning control via BSM(0,14). Please advise.

Thanks,
Vijay
Back to top
View user's profile Send private message
enrico-sorichetti

Senior Moderator


Joined: 14 Mar 2007
Posts: 10714
Location: italy

PostPosted: Tue May 25, 2010 6:22 pm
Reply with quote

looks like the save area chain is clobbered or not setup properly
most probably You/somebody is restoring the wrong registers
( from the -2 savearea instead of the -1 savearea )
Back to top
View user's profile Send private message
vijay korde

New User


Joined: 19 Feb 2010
Posts: 27
Location: India

PostPosted: Tue May 25, 2010 6:26 pm
Reply with quote

you mean calling program save area or called program save area?

The same sub program is getting called successfully and returning to NSI from other modules.

Please advise.

Thanks,
Vijay
Back to top
View user's profile Send private message
enrico-sorichetti

Senior Moderator


Joined: 14 Mar 2007
Posts: 10714
Location: italy

PostPosted: Tue May 25, 2010 6:29 pm
Reply with quote

Quote:
returning to NSI from other modules.

why don't You compare a working program with the one giving the issue
( faster than doing remote debugging without looking at the source )
most probably in this case the calling program did not setup correctly the save areas chains
Back to top
View user's profile Send private message
sandeep chopra

New User


Joined: 28 Aug 2008
Posts: 11
Location: Noida

PostPosted: Mon Dec 13, 2010 10:21 pm
Reply with quote

Hi Vijay,

When you calling program with BASSM whether you are covverting its loaded address in 31 bit addressing mode.
Extrn called
Lablel A(x'80000000'+Called)
Or load the called module dynamically with Load Macro. This way it would take its 31 bit address only. Just give BASSm then.
Back to top
View user's profile Send private message
vijay korde

New User


Joined: 19 Feb 2010
Posts: 27
Location: India

PostPosted: Wed Dec 15, 2010 7:42 pm
Reply with quote

Thank you all for the reply.

This problem got solved with REUS link option while aseembling the module.
Back to top
View user's profile Send private message
sandeep chopra

New User


Joined: 28 Aug 2008
Posts: 11
Location: Noida

PostPosted: Wed Dec 15, 2010 8:11 pm
Reply with quote

Hi Vijay,

could you please let us know what effect had on called module that it got solved by giving reuse option?


Thanks,
sandeep chopra
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 How to list BMS MAP screens in BMS Ph... CICS 1
No new posts Any examples of calling FTP from REXX? CLIST & REXX 1
No new posts Calling Assembler from REXX PL/I & Assembler 5
No new posts Calling Rexx program from Cobol CLIST & REXX 12
No new posts use BPXWDYN after calling CEE3DMP for... COBOL Programming 1
Search our Forums:

Back to Top