View previous topic :: View next topic
|
Author |
Message |
rajesh7523
New User
Joined: 15 Dec 2022 Posts: 8 Location: BHOPAL
|
|
|
|
Hi All,
I want to set the return code =04 only if below sort logic satisfy, and if it didnt have duplicates or not satisfy the sort condition then RC00
SORT FIELDS=(1,24,CH,A),EQUALS
SUM FIELDS=NONE
here is my job
Code: |
//STEP020B EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=TEST.CBS.ROJ1.IDOC0410.MASTER.WORK1,
// DISP=SHR
//SORTOUT DD DSN=TEST.CBS.ROJ1.DLS.IDOC0410.MASTER.D0307,
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,
// SPACE=(TRK,(4000,400),RLSE),
// DCB=(MODELDCB,RECFM=FB,LRECL=3728,BLKSIZE=0)
//SYSIN DD *
SORT FIELDS=(1,24,CH,A),EQUALS
SUM FIELDS=NONE
/* |
This is my requirement because, I want to execute the next steps only if it satisfies else it should skip the next steps. if we set the RC then condition check in next step we can execute or skip
Also i tried to set RC04 with IDCAMS, it is working with out sortlogic not with it.
Please help me with the sort logic. |
|
Back to top |
|
|
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1306 Location: Bamberg, Germany
|
|
|
|
So RC04 if dups, RC00 if no dups? The other condition makes no sense. |
|
Back to top |
|
|
rajesh7523
New User
Joined: 15 Dec 2022 Posts: 8 Location: BHOPAL
|
|
|
|
yahh i need to setup the RC based on the satisfying condition.
any one pls help me with the sort logic |
|
Back to top |
|
|
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1306 Location: Bamberg, Germany
|
|
|
|
See ICETOOL COUNT operator with EMPTY/NOTEMPTY. You can set RC4/RC8 or RC12 in this case. |
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2119 Location: USA
|
|
|
|
rajesh7523 wrote: |
Also i tried to set RC04 with IDCAMS, it is working with out sortlogic not with it.
|
IDCAMS and SORT are two separate and independent utility programs. The difference is the same as between a train, and a plane.
You cannot use a train ticket to board a plane.
In the same manner you cannot "set RC04 in IDCAMS" to "start working with sort logic" |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3075 Location: NYC,USA
|
|
Back to top |
|
|
|