Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
writing 'dataset list' to a dataset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
Author Message
vamskrish
Warnings : 1

New User


Joined: 31 Jan 2007
Posts: 23
Location: virginia

PostPosted: Wed Jan 16, 2008 6:42 am    Post subject: writing 'dataset list' to a dataset
Reply with quote

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
View user's profile Send private message
References
PostPosted: Wed Jan 16, 2008 6:42 am    Post subject: Re: writing 'dataset list' to a dataset Reply with quote

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 3173
Location: Charlotte,NC USA

PostPosted: Wed Jan 16, 2008 8:17 am    Post subject: Reply to: writing 'dataset list' to a dataset
Reply with quote

See number 2 here.

Then, see here to determine the name and/or status of the LIST dataset.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 1897
Location: Israel

PostPosted: Wed Jan 16, 2008 11:53 am    Post subject:
Reply with quote

Try the SAVE command.

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

Super Moderator


Joined: 30 May 2003
Posts: 1493

PostPosted: Wed Jan 16, 2008 8:15 pm    Post subject:
Reply with quote

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
View user's profile Send private message
vamskrish
Warnings : 1

New User


Joined: 31 Jan 2007
Posts: 23
Location: virginia

PostPosted: Wed Jan 16, 2008 11:04 pm    Post subject:
Reply with quote

thanks all, 'SAVE AX' worked.
Back to top
View user's profile Send private message
vishabus

New User


Joined: 25 Oct 2006
Posts: 24
Location: Noida

PostPosted: Tue May 27, 2008 1:58 pm    Post subject:
Reply with quote

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

Global Moderator


Joined: 27 Dec 2005
Posts: 1897
Location: Israel

PostPosted: Tue May 27, 2008 2:00 pm    Post subject:
Reply with quote

You can use the ISPF service LMMLIST/LMDLIST with OPTION(SAVE) in batch.

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

New User


Joined: 25 Oct 2006
Posts: 24
Location: Noida

PostPosted: Tue May 27, 2008 2:34 pm    Post subject:
Reply with quote

It seems we don't have this facility at our site icon_sad.gif

Any alternatives ??
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 2656
Location: italy

PostPosted: Tue May 27, 2008 3:31 pm    Post subject: Reply to: writing 'dataset list' to a dataset
Reply with quote

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

Global Moderator


Joined: 22 Apr 2006
Posts: 1951
Location: Phoenix, AZ

PostPosted: Tue May 27, 2008 6:25 pm    Post subject:
Reply with quote

By the way if you need a list starting with
Quote:
A.S*.*
as asked in very first post, might be you can use IDCAMS in batch. I assume "A" is HLQ here.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1