Copy names of PS files to a single PS file.



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

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

Postby abyvarghes » Fri Dec 06, 2013 5:32 am

Akatsukami wrote:
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.


Hi Akatsukami,

As you said I was needed only DSN's . And I got it with help of REXX code.

Thanks Dick and all for your valuable support.

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 6:14 am

Yup, I agree that the "final" output is to be only dsns.

From the SAVEd list it should be rather easy to pass the file thru a SORT/copy and only include those records that match the first part of the mask.

Possibly I am still missing something?

d
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

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

Postby abyvarghes » Fri Dec 06, 2013 6:23 am

dick scherrer wrote:Yup, I agree that the "final" output is to be only dsns.

From the SAVEd list it should be rather easy to pass the file thru a SORT/copy and only include those records that match the first part of the mask.

Possibly I am still missing something?

d


Hi Dick,

The default output had DSN , the Catalog information and info like migrated or not also (As I mentioned before). But I wanted only DSN's . So with the help of some REXX code I could filter that and put it in another PS file.

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 6:30 am

Yup, you can use REXX or the sort.

d
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

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

Postby NicC » Fri Dec 06, 2013 4:09 pm

Or you could have allocated a dataset of lrecl=44 (the maximum length of a datasetname) and copied the list to that thus only getting the first 44 bytes i.e. the dataset names
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Previous

Return to JCL

 


  • Related topics
    Replies
    Views
    Last post