larry macioce wrote on 03/01/2010 08:14:15 AM:
> I was graciously given some jcl to do a sort of an unloaded racf db.
> The problem is I am getting:
> ICE218A 1 26 BYTE VARIABLE RECORD IS SHORTER THAN 28 BYTE MINIMUM FOR
>    FIELDS
> the jcl is:
>
> //TOOLIN DD *
>  SORT    FROM(INDD) TO(TEMP0001) USING(ULDF)
>  DISPLAY FROM(TEMP0001) LIST(PRINT) -
>          PAGE -
>          TITLE('LIST OF IDS') -
>          DATE(4MD/) -
>          TIME(24:) -
>          BLANK -
>          ON(10,8,CH) HEADER('USER ID') -
>          ON(79,20,CH) HEADER('USER NAME') -
>          ON(100,8,CH) HEADER('DEFAULT GROUP') -
>          ON(19,10,CH) HEADER('CREATED')
> //INDD DD DISP=SHR,DSN=SYS1.RACF.RPT
> //TEMP0001 DD DISP=(NEW,DELETE,DELETE),SPACE=(CYL,(20,5,0)),
> //  UNIT=SYSDA
> //ULDFCNTL   DD *
>  SORT FIELDS=(10,8,CH,A)
>  INCLUDE COND=(5,4,CH,EQ,C'0200',AND,
>                19,10,CH,GE,C'2008-07-01',AND,
>                19,10,CH,LE,C'2009-06-30')  OPTION VLSHRT
>
> As you can see I was given the vlshrt (didnt know what it was, looked it
up)
> option so now I am confused.

Larry,

I was able to recreate your ICE218A.  The problem is that you have
OPTION VLSHRT on the same line as part of your INCLUDE statement so it's
treated as a remark for that statement rather than as a separate statement.
The ICE218A went away when I changed the ULDFCNTL DD * statements to:

  SORT FIELDS=(10,8,CH,A)
  INCLUDE COND=(5,4,CH,EQ,C'0200',AND,
                19,10,CH,GE,C'2008-07-01',AND,
                19,10,CH,LE,C'2009-06-30')
  OPTION VLSHRT


You might want to consider using VLSCMP (for INCLUDE) along with
VLSHRT (for SORT) depending on how you want to handle the short
INCLUDE records.  For an explanation, see the "How can I use
INCLUDE/OMIT with "short" fields?" Ask Professor Sort item at:

http://www.ibm.com/support/docview.wss?rs=114&uid=isg3T7000093

Frank Yaeger - DFSORT Development Team (IBM) - [email protected]
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration

 => DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort/

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to