Copy names of PS files to a single PS file.



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Copy names of PS files to a single PS file.

Postby abyvarghes » Thu Dec 05, 2013 8:51 pm

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
abyvarghes
 
Posts: 13
Joined: Wed Apr 01, 2009 11:52 am
Has thanked: 0 time
Been thanked: 0 time

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

 

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

Postby Akatsukami » Thu Dec 05, 2013 9:01 pm

PF1, option 6, SAVE topic.
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Akatsukami
Global moderator
 
Posts: 1053
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

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

Postby NicC » Thu Dec 05, 2013 9:34 pm

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
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times

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

Postby dick scherrer » Thu Dec 05, 2013 11:18 pm

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

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

Postby abyvarghes » Thu Dec 05, 2013 11:54 pm

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 ?
abyvarghes
 
Posts: 13
Joined: Wed Apr 01, 2009 11:52 am
Has thanked: 0 time
Been thanked: 0 time

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

Postby NicC » Fri Dec 06, 2013 12:11 am

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.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times

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

Postby dick scherrer » Fri Dec 06, 2013 12:31 am

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
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

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

Postby abyvarghes » Fri Dec 06, 2013 1:25 am

 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
abyvarghes
 
Posts: 13
Joined: Wed Apr 01, 2009 11:52 am
Has thanked: 0 time
Been thanked: 0 time

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

Postby dick scherrer » Fri Dec 06, 2013 4:13 am

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"?
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

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

Postby Akatsukami » Fri Dec 06, 2013 4:17 am

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.
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Akatsukami
Global moderator
 
Posts: 1053
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

Next

Return to JCL

 


  • Related topics
    Replies
    Views
    Last post