Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Calling module using BASSM

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
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    Post subject: Calling module using BASSM
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Tue May 25, 2010 5:43 pm    Post subject: Reply to: BASSM question
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Tue May 25, 2010 6:22 pm    Post subject: Reply to: BASSM question
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Tue May 25, 2010 6:29 pm    Post subject: Reply to: BASSM question
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    Post subject: Reply to: Calling module using BASSM
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    Post subject:
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    Post subject: Reply to: Calling module using BASSM
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    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 Dump analysis of an assembler module monica1 PL/I & Assembler 4 Tue May 09, 2017 10:05 am
No new posts Need help in triggering a PL1 module ... Varungv99 IMS DB/DC 0 Fri Apr 07, 2017 10:01 am
No new posts Calling procedure with multiple entri... steve-myers PL/I & Assembler 5 Fri Jan 27, 2017 3:33 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts Copybook structure in Load module Vai123 COBOL Programming 7 Fri Sep 16, 2016 8:29 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us