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
 

 

writing 'dataset list' to a dataset

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

New User


Joined: 31 Jan 2007
Posts: 27
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

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, 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: 2360
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: 1592

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: 27
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: India

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: 2360
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: India

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: 10256
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 Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

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
ramangouda patil

New User


Joined: 09 Apr 2008
Posts: 39
Location: India

PostPosted: Mon Nov 01, 2010 9:24 pm    Post subject:
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Mon Nov 01, 2010 9:26 pm    Post subject: Reply to: writing 'dataset list' to a dataset
Reply with quote

after the save hit PF1 two times!
the help messages will tell the exact name of the dataset
Back to top
View user's profile Send private message
ramangouda patil

New User


Joined: 09 Apr 2008
Posts: 39
Location: India

PostPosted: Mon Nov 01, 2010 9:30 pm    Post subject:
Reply with quote

Thanks enrico! there was another HLQ being appended in the saved dataset name.
Back to top
View user's profile Send private message
Pedro

Senior Member


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

PostPosted: Tue Nov 02, 2010 9:08 am    Post subject: Reply to: writing 'dataset list' to a dataset
Reply with quote

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:
Code:
TSO PROFILE
to see your prefix.
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 -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts member list compare jzhardy TSO/ISPF 6 Fri May 12, 2017 3:18 pm
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts LISTCAT on a dataset with symbolic pa... shreya19 JCL & VSAM 5 Fri Apr 07, 2017 5:43 pm
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm


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