View previous topic :: View next topic
|
Author |
Message |
Thanga Senthil Raja.
New User
Joined: 16 Nov 2012 Posts: 6 Location: India
|
|
|
|
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 |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
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 |
|
|
Thanga Senthil Raja.
New User
Joined: 16 Nov 2012 Posts: 6 Location: India
|
|
|
|
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 |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
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 |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
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 |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
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 |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Quote: |
need to process some outputs from assembler code |
Can you describe the 'output' in more detail? |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
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 |
|
|
|