View previous topic :: View next topic
|
Author |
Message |
vamskrish Warnings : 1 New User
Joined: 31 Jan 2007 Posts: 27 Location: virginia
|
|
|
|
hi,
how can i save the list of "dataset names" available to a dataset.
lets say i have 1000's of files with the name A.S*.*
using ispf option 3.4 i can list all of those but i would like to have that list written to a dataset. i tried option 'P' in 3.4 but i dont understand where exactly the list is printed. kindly suggest what needs to be done.
vamshi |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
See number 2 here.
Then, see here to determine the name and/or status of the LIST dataset. |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Try the SAVE command.
O. |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Enter on cmd line:
SAVE ax
where: a is any alpha char and x is any 0 to 7 A/N char string.
The list will be stored in a PS dataset named: yrTSOid.ax.datasets
To save PDS member lists do the same, changing "datasets" to "members". |
|
Back to top |
|
|
vamskrish Warnings : 1 New User
Joined: 31 Jan 2007 Posts: 27 Location: virginia
|
|
|
|
thanks all, 'SAVE AX' worked. |
|
Back to top |
|
|
vishabus
New User
Joined: 25 Oct 2006 Posts: 24 Location: India
|
|
|
|
Hi,
Can we do this in batch? We need to have a batch job which needs the member list for a given dataset and no manual intervention is required. |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
You can use the ISPF service LMMLIST/LMDLIST with OPTION(SAVE) in batch.
O. |
|
Back to top |
|
|
vishabus
New User
Joined: 25 Oct 2006 Posts: 24 Location: India
|
|
|
|
It seems we don't have this facility at our site
Any alternatives ?? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
|
|
Quote: |
It seems we don't have this facility at our site |
odd, if You have ispf then You can write a rexx using the ispf services...
LMMLIST and friends are not ready made things
are just services to be invoked by a ... script ( rexx,clist) or a program |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
By the way if you need a list starting with
as asked in very first post, might be you can use IDCAMS in batch. I assume "A" is HLQ here. |
|
Back to top |
|
|
ramangouda patil
New User
Joined: 09 Apr 2008 Posts: 39 Location: India
|
|
|
|
I am unable to view the dataset list after I try to save using on command line 'SAVE A4'. There are no datasets with my HLQ (Raman.A4.DATASETS). Help please! |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
|
|
after the save hit PF1 two times!
the help messages will tell the exact name of the dataset |
|
Back to top |
|
|
ramangouda patil
New User
Joined: 09 Apr 2008 Posts: 39 Location: India
|
|
|
|
Thanks enrico! there was another HLQ being appended in the saved dataset name. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2594 Location: Silicon Valley
|
|
|
|
The original instructions were:
Quote: |
The list will be stored in a PS dataset named: yrTSOid.ax.datasets |
But more correctly, it should say 'yourprefix':
Quote: |
The list will be stored in a PS dataset named: yrPrefix.ax.datasets |
Very frequently, the userid is used as the prefix, but you can choose a different prefix if you want. Use the PROFILE command. From the ISPF command line:
to see your prefix. |
|
Back to top |
|
|
|