Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

RETP code in REXX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: RETP code in REXX
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: 3158
Location: Tucson AZ

PostPosted: Tue Jul 20, 2010 7:07 am    Post subject:
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    Post subject:
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: 2360
Location: Israel

PostPosted: Tue Jul 20, 2010 11:22 am    Post subject:
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    Post subject:
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: 2360
Location: Israel

PostPosted: Tue Jul 20, 2010 12:06 pm    Post subject:
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

Senior Member


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

PostPosted: Tue Jul 20, 2010 9:54 pm    Post subject: Reply to: RETP code in REXX
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    Post subject:
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    Post subject:
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: 646
Location: Pennsylvania

PostPosted: Wed Jul 21, 2010 8:43 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 0 Thu Jan 12, 2017 12:02 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts PL/I code tuning/Performance improvement Virendra Shambharkar PL/I & Assembler 4 Mon Dec 05, 2016 11:57 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us