Page 2 of 2

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

PostPosted: Fri Dec 06, 2013 5:32 am
by abyvarghes
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

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

PostPosted: Fri Dec 06, 2013 6:14 am
by dick scherrer
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

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

PostPosted: Fri Dec 06, 2013 6:23 am
by abyvarghes
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

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

PostPosted: Fri Dec 06, 2013 6:30 am
by dick scherrer
Yup, you can use REXX or the sort.

d

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

PostPosted: Fri Dec 06, 2013 4:09 pm
by NicC
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