Can We Sort Generic Dsn



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

Can We Sort Generic Dsn

Postby erdal ozaslan » Wed Oct 06, 2010 1:50 pm

I want to sort generic DSN..
is it possible..

example..

I have 4 dsn
SHR.WRK.ERDAL1
SHR.WRK.ERDAL2
SHR.WRK.ERDAL3
SHR.WRK.ERDAL4

can ı sort generic sortin

//SORTST3 EXEC PGM=SORT
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=SHR.WRK.ERDAL-,DISP=SHR
//SORTOUT DD DSN=SHR.WRK.ERDAL,DISP=(,CATLG,DELETE),
// LIKE=SHR.WRK.ERDAL1
SORT FIELDS=(COPY)
erdal ozaslan
 
Posts: 1
Joined: Wed Oct 06, 2010 1:43 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Can We Sort Generic Dsn

Postby enrico-sorichetti » Wed Oct 06, 2010 2:16 pm

the question is not sort related, is just JCL related ...
review the JCL manuals for the DD statement syntax!

anyway no, what You ask cannot be done ( in general ) !

but if the the input datasets are GDGs then.
using as dataset name the name of the base You will process all the generations
( as a concatenation of datasets )
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2994
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Re: Can We Sort Generic Dsn

Postby NicC » Wed Oct 06, 2010 11:57 pm

Well, I think you can but not as you show. Do as Enrico suggests and read the manual and read about concatenating datasets.
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

Re: Can We Sort Generic Dsn

Postby dick scherrer » Thu Oct 07, 2010 3:01 am

Hello,

Even with concatenation, it will not be automagic. . .

Each individual dataset name will be on a separate DD statement. There is no standard way to "wildcard" the DSN= parameter.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post