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

RETP code in REXX


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
arvind.m

Active User


Joined: 28 Aug 2008
Posts: 205
Location: Hyderabad

PostPosted: Tue Jul 20, 2010 7:02 am
Reply with quote

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
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Tue Jul 20, 2010 7:07 am
Reply with quote

What the heck is the 'REPT' code?
Back to top
View user's profile Send private message
arvind.m

Active User


Joined: 28 Aug 2008
Posts: 205
Location: Hyderabad

PostPosted: Tue Jul 20, 2010 7:10 am
Reply with quote

RETP (Retrieve Panel)- Retrieve last 25 commands typed in ISPF/TSO.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Jul 20, 2010 11:22 am
Reply with quote

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
View user's profile Send private message
arvind.m

Active User


Joined: 28 Aug 2008
Posts: 205
Location: Hyderabad

PostPosted: Tue Jul 20, 2010 12:03 pm
Reply with quote

we are currently using VM/CMS, will the above code work...let me check from my side.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Jul 20, 2010 12:06 pm
Reply with quote

Sorry, my mistake. The above code was written and tested on z/OS. I have no idea regarding VM.

O.
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Tue Jul 20, 2010 9:54 pm
Reply with quote

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
View user's profile Send private message
arvind.m

Active User


Joined: 28 Aug 2008
Posts: 205
Location: Hyderabad

PostPosted: Tue Jul 20, 2010 11:50 pm
Reply with quote

So we can't simulate similar code in VM? icon_eek.gif
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Jul 21, 2010 1:30 am
Reply with quote

VM Manuals

REXX on VM by the americanprogrammer website

Sorry Arvind,
as the maid said 'i don't do windoz and VM'.
Back to top
View user's profile Send private message
daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 792
Location: Pennsylvania

PostPosted: Wed Jul 21, 2010 8:43 pm
Reply with quote

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
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 isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top