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

How to extract the last datasets that I've visited


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
dilson joseph

New User


Joined: 18 Apr 2008
Posts: 6
Location: pune

PostPosted: Tue Apr 29, 2008 12:28 pm
Reply with quote

I want to retrieve the last 30 datasets that I've browsed with the date of visit. Is there any function which can list the name of the datasets. What actually I want to do is to list the last 30 datasets that I have browsed with the date and time of the visit and to select the one I need and browse it. I want to enable this function with a particular key so that when I press that key it will display the panel with list of datasets.

dilson
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Tue Apr 29, 2008 2:10 pm
Reply with quote

Hi !

You have to do this by your own. There is no command for that. Means, you have to write a little rexx for that. Store the DSN's you browse or edit in an ISPF table.

Regards, UmeySan
Back to top
View user's profile Send private message
acevedo

Active User


Joined: 11 May 2005
Posts: 344
Location: Spain

PostPosted: Tue Apr 29, 2008 2:15 pm
Reply with quote

try

Code:
Dslist reflist
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Tue Apr 29, 2008 2:23 pm
Reply with quote

Hi acevedo !

Thank's, you just teached your grandma to su** eggs.
Seams that i'm showing ageing phenomena.

Have a nice day & Regards, UmeySan
Back to top
View user's profile Send private message
dilson joseph

New User


Joined: 18 Apr 2008
Posts: 6
Location: pune

PostPosted: Tue Apr 29, 2008 2:31 pm
Reply with quote

ok thank u for ur reply,
i will just try this one and get back to u.
Back to top
View user's profile Send private message
acevedo

Active User


Joined: 11 May 2005
Posts: 344
Location: Spain

PostPosted: Wed Apr 30, 2008 12:16 pm
Reply with quote

RefList is created by the system (Last 30 referenced data sets) but you can create/edit/delete others lists by invoking REFOPEND (or using File # 707 Customize ISPF 3.4 dataset lists according to users).

;)
Back to top
View user's profile Send private message
dilson joseph

New User


Joined: 18 Apr 2008
Posts: 6
Location: pune

PostPosted: Wed Apr 30, 2008 12:27 pm
Reply with quote

actually we can get the list of all the 30 datasets we have visited from ispf reflist option that is true. i was just trying if we are able to make a rexx program thru which if i click on any particular functional key from any where, directly it will show us the list of datasets in the panel we have made and then we can select the dsn we want. since i m new in it i m finding it very difficult to code but have the logic with me written down. i do not know what i have to search or where, i went thru all most all the post inside rexx and clist more over i was trying the manual also but found it little difficult because i do not have the begining point so that i can start searching in the manual. so i was totally lost and then posted this topic for help.
Back to top
View user's profile Send private message
acevedo

Active User


Joined: 11 May 2005
Posts: 344
Location: Spain

PostPosted: Wed Apr 30, 2008 12:52 pm
Reply with quote

I think the key is ISRPLIST google to find more information but I think it was something like:

the lists are store in a ispf table ISRPLIST, open (tbopen) isrplist and read (tbscan) using "arglist(zcurtb)" where zcurtb=reflist, I think they are populated in dsapet01, dsapet02... and so until dsapet30.

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

Global Moderator


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

PostPosted: Tue May 13, 2008 5:22 am
Reply with quote

I think Acevedo was right about DSLIST REFLIST.

I do not think you need to write a rexx program. Use the KEYS command to manually set your PF key definition to be DSLIST REFLIST.

Then you can:
* issue FKA ON to show PF keys.
* double click on your PK key and you will get the list of datasets.
* double click on a dataset name and you will get a list of possible actions.
* double click on an action, such as 'EDIT'.

I use PCOMM with preferences set to use PF keys as hotspots and to press "ENTER at cursor position".

Actually, you can just set your PF key to be just DSLIST... might be more flexible.

The original post asked about date and time... if really needed, you would need to write your own routine and Acevedo already gave a good starting point.
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 Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts Need help for File Aid JCL to extract... Compuware & Other Tools 23
No new posts optim extract file - SAS DB2 2
No new posts Merging 2 datasets into one DFSORT/ICETOOL 1
No new posts How to extract the data for current y... DFSORT/ICETOOL 8
Search our Forums:

Back to Top