View previous topic :: View next topic |
Author |
Message |
Nancy Beginner
Joined: 23 May 2003 Posts: 77 Topics: 26
|
Posted: Wed Aug 20, 2003 7:24 am Post subject: ADDRESS in rexx !!! |
|
|
Can anybody explain me what ADDRESS command does in REXX ?? I only know that whatever value (MVS,TSO,ISPEXEC etc) we specify after ADDRESS, our instructions are executed in that environment.
Please throw some light on this. |
|
Back to top |
|
 |
Mike Beginner

Joined: 03 Dec 2002 Posts: 114 Topics: 0 Location: Sydney, Australia
|
Posted: Wed Aug 20, 2003 8:38 pm Post subject: |
|
|
ADDRESS temporarily or permenatly (permemnant being for the duration of the Rexx program) changes the destination of commands. Rexx by default sends commands to TSO (if invoked in a TSO environment) hence you can issue TSO/E commands easily, however if you issues ADDRESS ISPEXEC (to permenantly change commands to be sent to ISPEXEC) then you would find that commands are then sent to ISPEXEC e.g. 'EXECIO ......' would not then work as expected(ADDRESS TSO 'EXECIO ....' [temporary change to command destination] would though).
As I understand it it's very similar to calling a program, thus when you use ADDRESS ISPEXEC you are calling the ISPEXEC program and passing a string to that program, it being written to then process such strings. _________________ Regards,
Mike. |
|
Back to top |
|
 |
Nancy Beginner
Joined: 23 May 2003 Posts: 77 Topics: 26
|
Posted: Thu Aug 21, 2003 4:10 am Post subject: |
|
|
Thanks Mike. Your explaination helped a lot. |
|
Back to top |
|
 |
|
|