MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Copy PDS member names to sequential file.

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
relaxing
Beginner


Joined: 25 Aug 2003
Posts: 73
Topics: 29

PostPosted: Thu Jun 21, 2007 4:51 pm    Post subject: Copy PDS member names to sequential file. Reply with quote

Gurus,

Can we copy only member names of a PDS into sequential file. I have very limited knowledge on REXX. Any JCL or SORT utility will be great, else REXX is fine.

Thanks.
Back to top
View user's profile Send private message
relaxing
Beginner


Joined: 25 Aug 2003
Posts: 73
Topics: 29

PostPosted: Thu Jun 21, 2007 4:54 pm    Post subject: Reply with quote

I have found this code here in the helpboards. I will try this code once I have my system on hand. Thanks.

//JS10 EXEC PGM=IEHLIST
//SYSPRINT DD SYSOUT=*
//DDNAME1 DD UNIT=3390,VOL=SER=SYSRES,DISP=OLD
//SYSIN DD *
LISTPDS DSNAME=SYS1.LINKLIB,FORMAT,VOL=3390=SYSRES
/*
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Fri Jun 22, 2007 6:48 am    Post subject: Reply with quote

relaxing,

check this topic also

http://www.mvsforums.com/helpboards/viewtopic.php?t=1766&highlight=listds


Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kingo
Intermediate


Joined: 01 Sep 2006
Posts: 167
Topics: 40
Location: chennai

PostPosted: Wed Jul 18, 2007 6:32 am    Post subject: Reply with quote

This program will cature tso command output to a dataset

Code:


/*REXX*/
 DUMMY = OUTTRAP("OUTPUT_LINE.","*")
 "LISTDS 'aaaa.xxxx.REXX' M"
 NUMLINES = OUTPUT_LINE.0
 SAY NUMLINES "LINES WERE CREATED"
 DUMMY = OUTTRAP("OFF")
 "DELETE mem.LIST"
 "ALLOCATE DD(mem) DA(mem.LIST) NEW SPACE(15 15) TRACKS",
 "LRECL(80) BLOCK(6160) RECFM(F B) RETPD(0)"
 "EXECIO" OUTPUT_LINE.0 "DISKW mem (STEM OUTPUT_LINE. FINIS"
 "FREE DDNAME(mem) DA(mem.LIST)"
 ADDRESS "ISPEXEC" "EDIT DATASET(mem.LIST) "



Please try as I not very much sure

Embarassed

Regds,
Kingo
_________________
IF YOU ARE NOT FOCUSSED ON GOAL ALL YOU SEE IS OBSTACLE.
Back to top
View user's profile Send private message Yahoo Messenger
ofer71
Intermediate


Joined: 12 Feb 2003
Posts: 358
Topics: 4
Location: Israel

PostPosted: Wed Jul 18, 2007 7:57 am    Post subject: Reply with quote

If you have ISPF, you can use the SAVE command.

O.
________
sell vaporizers
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group