• dfsort symnames in plisrta

    From johann woeckinger@21:1/5 to All on Fri Mar 5 02:50:39 2021
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John W Kennedy@21:1/5 to johann woeckinger on Fri Mar 5 17:03:13 2021
    On 3/5/21 5:50 AM, johann woeckinger wrote:
    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

    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"

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From johann woeckinger@21:1/5 to John W. Kennedy on Mon Mar 8 10:27:00 2021
    Wow, this works indeed.
    Specify a SYMNAMES DD and use the symbols in code.
    Many thanks John!

    On Friday, March 5, 2021 at 11:03:19 PM UTC+1, John W. Kennedy wrote:
    On 3/5/21 5:50 AM, johann woeckinger wrote:
    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
    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"

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From johann woeckinger@21:1/5 to johann woeckinger on Thu Mar 11 07:11:41 2021
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Peter Flass@21:1/5 to johann woeckinger on Thu Mar 11 12:21:08 2021
    johann woeckinger <woecki@gmail.com> wrote:
    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


    Create the dataset in the program and dynnalloc the symnames dd before
    invoking the sort,

    --
    Pete

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From johann woeckinger@21:1/5 to All on Mon Mar 15 05:13:16 2021
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)