View previous topic :: View next topic
|
Author |
Message |
arvind.m
Active User
Joined: 28 Aug 2008 Posts: 205 Location: Hyderabad
|
|
|
|
Hi All
Can we simulate or clone the REPT code to perform similar functionality. Can we do that in REXX.
Can anyone provide me any useful information or any link regarding the same. I want to write a REXX code to capture last 5 typed commands in VM/CMS.
Thanks, |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
What the heck is the 'REPT' code? |
|
Back to top |
|
|
arvind.m
Active User
Joined: 28 Aug 2008 Posts: 205 Location: Hyderabad
|
|
|
|
RETP (Retrieve Panel)- Retrieve last 25 commands typed in ISPF/TSO. |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
You can invoke the RETP command from REXX with the following example; however - retrieving the last commands programmatically is not that straightforward. You might want to inquire the ISPRETP panel.
Code: |
/* REXX */
STACK = 'RETP'
ADDRESS ISPEXEC "DISPLAY PANEL(any_panel_name) COMMAND(STACK)"
EXIT |
O. |
|
Back to top |
|
|
arvind.m
Active User
Joined: 28 Aug 2008 Posts: 205 Location: Hyderabad
|
|
|
|
we are currently using VM/CMS, will the above code work...let me check from my side. |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Sorry, my mistake. The above code was written and tested on z/OS. I have no idea regarding VM.
O. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
As far as I know, ISPF on VM is stuck on V3.2 (or something like that) for many years. On z/OS, there have been many releases since then.
In particular, RETP was in V4.? so will not be in the VM version. |
|
Back to top |
|
|
arvind.m
Active User
Joined: 28 Aug 2008 Posts: 205 Location: Hyderabad
|
|
|
|
So we can't simulate similar code in VM? |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
Back to top |
|
|
daveporcelan
Active Member
Joined: 01 Dec 2006 Posts: 792 Location: Pennsylvania
|
|
|
|
This reminds me of years ago when I worked in a shop that had an MVS and a VM machine.
Nobody liked to work on the VM machine.
To avoid getting work assigned to me on that machine, I would say 'I can't even spell VM'. |
|
Back to top |
|
|
|