Page 1 of 2

Copy names of PS files to a single PS file.

PostPosted: Thu Dec 05, 2013 8:51 pm
by abyvarghes
Hi All,

May I know how can I copy JUST name of PS files (around 365) to another PS files. Just names needed not the content required.

Eg: We have PS files like
SYSD.SYSLOG.SP2.Dmmddyy , if generic SYSD.SYSLOG.SP2.D*13
So I wan to copy just name of all daily SYSLOG (for year 2013) to another PS file.

So if I goto 3.4 Option and list SYSD.SYSLOG.SP2.D*13 , it will out put all the SYSLOG files for year 2013. I need to copy this out put (only name) to another PS files usning JCL or any other technique (REXX).

Can some one help me on this.

Thanks,
Aby

Re: Copy names of PS files to a single PS file.

PostPosted: Thu Dec 05, 2013 9:01 pm
by Akatsukami
PF1, option 6, SAVE topic.

Re: Copy names of PS files to a single PS file.

PostPosted: Thu Dec 05, 2013 9:34 pm
by NicC
PF1, option 6, SAVE topic.

does not work for me - maybe a customised help panel. However selecting option 6 from the Help item on the action bar then Index then S2 does work

Re: Copy names of PS files to a single PS file.

PostPosted: Thu Dec 05, 2013 11:18 pm
by dick scherrer
Hello,

When the dataset list is displayed, type SAVE MYFILES in the command area. A file with your_id.MYFILES.DATASETS will be created with the contents of the list.

Re: Copy names of PS files to a single PS file.

PostPosted: Thu Dec 05, 2013 11:54 pm
by abyvarghes
dick scherrer wrote:Hello,

When the dataset list is displayed, type SAVE MYFILES in the command area. A file with your id.MYFILES.DATASETS will be created with the contents of the list.


Thanks a lot dick scherrer ;

It works !! .
But its copy the Data set property also to the PS file. Any way to just copy only the dataset name ?

Re: Copy names of PS files to a single PS file.

PostPosted: Fri Dec 06, 2013 12:11 am
by NicC
Why not just edit the file or copy the relevant columns to another file? Did you actually look at the help? Probably not as you only replied to Dick who told you how to do it instead of pointing you in the right direction where you could LEARN how to do it.

Re: Copy names of PS files to a single PS file.

PostPosted: Fri Dec 06, 2013 12:31 am
by dick scherrer
Hi Nic,

who told you how to do it instead of pointing you in the right direction where you could LEARN how to do it.
Yup, i gave the "how to" literally as when the "direction" was mentioned earlier, it seemed to be misunderstood . . .
as in:
does not work for me - maybe a customised help panel

Re: Copy names of PS files to a single PS file.

PostPosted: Fri Dec 06, 2013 1:25 am
by abyvarghes
 UCAT.SP2.SYSTEM                                                       
SYSD.DAILY.SYSLOG.D180513                    MIGRAT2                   
 UCAT.SP2.SYSTEM                                                       
SYSD.DAILY.SYSLOG.D180613                    MIGRAT2                   
 UCAT.SP2.SYSTEM                                                       
SYSD.DAILY.SYSLOG.D180713                    DSYS84+PS   VB      132 228
 UCAT.SP2.SYSTEM                                                       
SYSD.DAILY.SYSLOG.D180813                    DSYS82+PS   VB      132 228
 UCAT.SP2.SYSTEM                                                       
SYSD.DAILY.SYSLOG.D180913                    DSYS87+PS   VB      132 228
 UCAT.SP2.SYSTEM                                                       
SYSD.DAILY.SYSLOG.D181013                    DSYS86+PS   VB      132 228
 UCAT.SP2.SYSTEM                                                       
SYSD.DAILY.SYSLOG.D181113                    DSYS82+PS   VB      132 228
 UCAT.SP2.SYSTEM                                                       
SYSD.DAILY.SYSLOG.D190113                    MIGRAT2                   
 UCAT.SP2.SYSTEM                                                       
SYSD.DAILY.SYSLOG.D190213                    MIGRAT2 
NicC wrote:Why not just edit the file or copy the relevant columns to another file? Did you actually look at the help? Probably not as you only replied to Dick who told you how to do it instead of pointing you in the right direction where you could LEARN how to do it.


Hi Nic,

The actual out put looks something like this. Filtering the data set name again from that with column is bit tricky for me. The input from Dick was very clear and worked for me.But the out put was not exactly what I was looking for but fare enough for me.
And I was asking for any more tips to do what exactly I want (only SYSD.DAILY.SYSLOG.D*) .

Thanks,
Aby

Re: Copy names of PS files to a single PS file.

PostPosted: Fri Dec 06, 2013 4:13 am
by dick scherrer
Hello,

to do what exactly I want (only SYSD.DAILY.SYSLOG.D*) .
I don't understand the question. I used a very similar "mask" and got the only the desired datasets.

Does the command fail or present the wrong "answer"?

Re: Copy names of PS files to a single PS file.

PostPosted: Fri Dec 06, 2013 4:17 am
by Akatsukami
dick scherrer wrote:Hello,

to do what exactly I want (only SYSD.DAILY.SYSLOG.D*) .
I don't understand the question. I used a very similar "mask" and got the only the desired datasets.

Does the command fail or present the wrong "answer"?

I think heesh wants only the DSNs.

Aby-kun, it should be a trivial task for anyone with a modest ability in Rexx to whip up a scriptette to process this output. Surely you have such a person in your shop.