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

Accessing assembler code variable values in REXX


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
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
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: 2455
Location: Hampshire, UK

PostPosted: Wed Jul 24, 2013 1:17 pm
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
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: 2455
Location: Hampshire, UK

PostPosted: Wed Jul 24, 2013 3:24 pm
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: 1788
Location: Bloomington, IL

PostPosted: Wed Jul 24, 2013 3:37 pm
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

Global Moderator


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

PostPosted: Thu Jul 25, 2013 1:12 am
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

Global Moderator


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

PostPosted: Thu Jul 25, 2013 1:12 am
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

Global Moderator


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

PostPosted: Thu Jul 25, 2013 1:19 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top