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
 

 

Accessing assembler code variable values in REXX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
Thanga Senthil Raja.

New User


Joined: 16 Nov 2012
Posts: 6
Location: India

PostPosted: Wed Jul 24, 2013 1:12 pm    Post subject: Accessing assembler code variable values in REXX
Reply with quote

Hi all,

Is there any ways to access the assembler code variables in rexx, I need to process some outputs from assembler code in REXX. any idea about this?

thanks in advance icon_smile.gif
Back to top
View user's profile Send private message

Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1712
Location: UK

PostPosted: Wed Jul 24, 2013 1:17 pm    Post subject:
Reply with quote

Explain in more detail because it sounds like you are reading an assembler source and want to get the variables from it. Variables generally use the DC and DS mnemonics. If you do not know assmebler language then I suggest either you learn the basics or ask someone in you shop who does. Your sysprogs should know enough.
Back to top
View user's profile Send private message
Thanga Senthil Raja.

New User


Joined: 16 Nov 2012
Posts: 6
Location: India

PostPosted: Wed Jul 24, 2013 2:55 pm    Post subject:
Reply with quote

thanks nic,

currently am in learning phase of Assembler basics,

1) ASMCODE(source code before conversion of load module) having some variable i.e under DC and DS mnemonics which you mentioned above.

2) After linkediting got load library called XYZ.LOADLIB(PGM1)

3) Now am calling loadlib from my REXX ., (ex.) "call 'XYZ.LOADLIB(PGM1)'"

My question: can I able to access that variable under DC and DS mnemonics in my REXX pgm ..

I dono whether its possible.. If so pls guide me some PDFs .. hope you got my question now..

thanks again icon_smile.gif
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1712
Location: UK

PostPosted: Wed Jul 24, 2013 3:24 pm    Post subject:
Reply with quote

I would very much doubt it, if you mean in the way that Rexx and ISPF know about shared variables. You can always pass data back and forth in a variety of ways. You are able to make your assembler program aware of the variable pools in ISPF so that they can be shared that way. I am no assembler programmer but the examples are somewhere - probably in the ISPF manuals rather than the Assmebler manuals.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1738
Location: Bloomington, IL

PostPosted: Wed Jul 24, 2013 3:37 pm    Post subject:
Reply with quote

Thanga Senthil Raja. wrote:
currently am in learning phase of Assembler basics,

1) ASMCODE(source code before conversion of load module) having some variable i.e under DC and DS mnemonics which you mentioned above.

2) After linkediting got load library called XYZ.LOADLIB(PGM1)

3) Now am calling loadlib from my REXX ., (ex.) "call 'XYZ.LOADLIB(PGM1)'"

My question: can I able to access that variable under DC and DS mnemonics in my REXX pgm ..

Yes, although it may take more effort than you wish to invest whilst still learning other aspects of HLASM. Look at the IJKCT441 service for Rexx running under native TSO, and the VDEFINE service for Rexx running under ISPF.
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2019
Location: Silicon Valley

PostPosted: Thu Jul 25, 2013 1:12 am    Post subject: Reply to: Accessing assembler code variable values in REXX
Reply with quote

Quote:
Look at the IJKCT441 service for Rexx running under native TSO

You can also use the IRXEXCOM service which allows the assembler program to inspect, set, or drop any rexx variable. See chapter 12 of the TSO Rexx Reference manual.
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2019
Location: Silicon Valley

PostPosted: Thu Jul 25, 2013 1:12 am    Post subject: Reply to: Accessing assembler code variable values in REXX
Reply with quote

Quote:
need to process some outputs from assembler code

Can you describe the 'output' in more detail?
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2019
Location: Silicon Valley

PostPosted: Thu Jul 25, 2013 1:19 am    Post subject: Reply to: Accessing assembler code variable values in REXX
Reply with quote

Quote:
Is there any ways to access the assembler code variables in rexx,


I added the emphasis to 'any'...

I believe you can! But should only do so using this method only during development of the assembler program. It is not intended as a day-to-day interface.

I think you can use rexx to start the TEST debugging environment and to set breakpoints and invoke your rexx program. When you reach your breakpoint, use a different rexx to examine program registers and program storage.
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts What is the code in CLIST to enable t... jackzhang75 CLIST & REXX 1 Fri Dec 02, 2016 3:02 am
No new posts IDEAL - Code Retrieval yugendran CA Products 0 Fri Nov 25, 2016 3:27 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 6 Fri Nov 18, 2016 1:48 pm
No new posts Overlaying one set of charater values... Kevin Lindsley SYNCSORT 7 Sat Nov 05, 2016 3:21 am
No new posts Access SQLCA fields inside a stored p... gangapd DB2 4 Thu Oct 27, 2016 10:20 am


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