Joined: 01 Feb 2007 Posts: 89 Location: Stockholm, Sweden
I am calling ICEMAN from a REXX exec as:
Code:
ADDRESS TSO "CALL *(ICEMAN)"
but I subsequently, in the same exec, want to perform another sort from/to different files.
I want to be able to tell it to use "SRT1" as a substitute for "SORT" prefix in the first invocation, and "SRT2" in the second, hence...
but I cannot see a similar facility to do this with ICEMAN (odd?), and I have been RTFMing for some time!
Doubtless searching for the wrong thing!
/Steve
Joined: 01 Feb 2007 Posts: 89 Location: Stockholm, Sweden
enrico-sorichetti wrote:
do not allocate the datasets from jcl...
Thanks Enrico,
Actually I was trying to avoid that approach, I can of course LISTDSI trap the DSname from the DDname and ALLOC REUSE it.
I may have to!? I was just hoping for a more user(coder)-friendly solution, perhaps an
Joined: 01 Feb 2007 Posts: 89 Location: Stockholm, Sweden
Bill Woodger wrote:
Don't know how you missed them
Hi Bill.
Yes, I may revert to Enrico's suggestion.
I have SC26-7523-06 open as we speak, since 7am today! (as well as the Smart Tricks book) but could not find anything like this.
Am I going blind in my old age?! |
Do you have a topic reference that shows this, I tried almost every combination of
Joined: 01 Feb 2007 Posts: 89 Location: Stockholm, Sweden
I tried a test rig like so...
Code:
//SORT EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//XXXXIN DD *
ONE
TWO
THREE
SKIPIT
FOUR
SKIPTOO
FIVE
//XXXXOUT DD SYSOUT=*
//SYSIN DD *
RECORD TYPE=F,LENGTH=80
OPTION SORTIN=XXXXIN,
NOEQUALS
OUTFIL FNAMES=XXXXOUT
OMIT COND=(1,4,CH,EQ,C'SKIP')
SORT FIELDS=(1,8,CH,A)
SUM FIELDS=NONE
/*
and I get nearer but... ABEND=S000 U0056 ...
Code:
ICE000I 1 - CONTROL STATEMENTS FOR 5694-A01, Z/OS DFSORT V1R12
RECORD TYPE=F,LENGTH=80
OPTION SORTIN=XXXXIN,
NOEQUALS
OUTFIL FNAMES=XXXXOUT
OMIT COND=(1,4,CH,EQ,C'SKIP')
SORT FIELDS=(1,8,CH,A)
SUM FIELDS=NONE
ICE201I H RECORD TYPE IS F - DATA STARTS IN POSITION 1
ICE056A 0 SORTIN NOT DEFINED
ICE751I 0 C5-K76982 C6-K90026 C7-K82419 C8-K91592 E7-K79990
ICE052I 3 END OF DFSORT
Joined: 01 Feb 2007 Posts: 89 Location: Stockholm, Sweden
Code:
ICE000I J - CONTROL STATEMENTS FOR 5694-A01, Z/OS DFSORT V1R12
RECORD TYPE=F,LENGTH=80
OPTION SORTIN=XXXXIN,SORTOUT=XXXXOUT,NOEQUALS
OMIT COND=(1,4,CH,EQ,C'SKIP')
SORT FIELDS=(1,8,CH,A)
SUM FIELDS=NONE
ICE201I J RECORD TYPE IS F - DATA STARTS IN POSITION 1
ICE056A N SORTOUT NOT DEFINED
ICE052I J END OF DFSORT
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
Note for future readers. The context of SORTIN here is on the OPTION statement. The quote is not referring directly to what happens to the SORTIN DD. OPTION SORTIN= allows for a different DD name to be used for SORTIN, but when invoked from JCL OPTION SORTIN (and others noted) are not availale on the OPTION statement.
Quote:
1. SORTIN is processed only if it is passed on the OPTION control statement
in an extended parameter list, or in DFSPARM.
So try DFSPARM.
You might want to look at SORTDD once you get it working.
These options are designed for invocation from from programs, rather than from JCL per se, but there are uses from JCL. There are differences to how and what OPTIONs are allowed in different circumstances. Getting it working from JCL doesn't necessarily give you what will work from a program.
Quote:
Note for Syntax Diagram: The keywords EFS, LIST, NOLIST, LISTX, NOLISTX,
MSGDDN, MSGPRT, SMF, SORTDD, SORTIN, SORTOUT, and USEWKDD are
used only when they are specified on the OPTION control statement passed by an
extended parameter list or when specified in the DFSPARM data set. If they are
specified on an OPTION statement read from the SYSIN or SORTCNTL data set,
the keyword is recognized, but the parameters are ignored.
For DFSPARM start at "Main features of sources of DFSORT options".
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
Quote:
Note for Syntax Diagram: The keywords EFS, LIST, NOLIST, LISTX, NOLISTX,
MSGDDN, MSGPRT, SMF, SORTDD, SORTIN, SORTOUT, and USEWKDD are
used only when they are specified on the OPTION control statement passed by an
extended parameter list or when specified in the DFSPARM data set. If they are
specified on an OPTION statement read from the SYSIN or SORTCNTL data set,
the keyword is recognized, but the parameters are ignored.
For DFSPARM start at "Main features of sources of DFSORT options".
EDIT: Missed your last Steve. Still, could be useful for someone else.