Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

dfsort symnames in plisrta

66 views
Skip to first unread message

johann woeckinger

unread,
Mar 5, 2021, 5:50:40 AM3/5/21
to
Hi,
I have to confess that i wasn't aware of dfsort's symnames.
What an elegant way to specify sort criteria!
"departement,A,birthday,D" is so much more readable than "7,3,PD,A,13,10,CH,D".
I was not able to find out, if there's a similar way to specify sort criteria in plisrta?
Thanks, br Johann

John W Kennedy

unread,
Mar 5, 2021, 5:03:19 PM3/5/21
to
On most systems, PLISRTA /is/ DFSORT. Have you tried simply adding a
SYMNAMES DD to your JCL?

--
John W. Kennedy
"The blind rulers of Logres
Nourished the land on a fallacy of rational virtue."
-- Charles Williams. "Taliessin through Logres: Prelude"

johann woeckinger

unread,
Mar 8, 2021, 1:27:01 PM3/8/21
to
Wow, this works indeed.
Specify a SYMNAMES DD and use the symbols in code.
Many thanks John!

johann woeckinger

unread,
Mar 11, 2021, 10:11:42 AM3/11/21
to
On Monday, March 8, 2021 at 7:27:01 PM UTC+1, johann woeckinger wrote:
> Wow, this works indeed.
> Specify a SYMNAMES DD and use the symbols in code.

But fiddling around with it i found that i don't like the idea: the pgm gets dependent on a completely separate dataset which i want to avoid in most cases.
Anyway, it was an interesting experiment,
br Johann

Peter Flass

unread,
Mar 11, 2021, 2:21:10 PM3/11/21
to
Create the dataset in the program and dynnalloc the symnames dd before
invoking the sort,

--
Pete

johann woeckinger

unread,
Mar 15, 2021, 8:13:17 AM3/15/21
to
> > But fiddling around with it i found that i don't like the idea: the pgm
> > gets dependent on a completely separate dataset which i want to avoid in most cases.
> > Anyway, it was an interesting experiment,
> > br Johann
> >
> Create the dataset in the program and dynnalloc the symnames dd before
> invoking the sort,
>
> --
> Pete
Thanks for the idea!
That came into my mind too, but before i give this a try, i'll play around with some offset(..) and size(..). And the preprocessor :-D.
br Johann
0 new messages