Skip to content

CitSORT® General Format

Format 1

       citsort
       [-bi-is-c5]
       [-test]
       [processmax = int ]
       [-processrec = int ]

       [SORT | SORT-EBCDIC | MERGE | COPY] [SIGN-EBCDIC]

       USE input-file
       [RECORD record-type, length, [max-length] [KEY ({start-pos,length,type}...)]
       [ORG file-organization]]

       [FIELDS ({start-pos,length,[data-type], sort-order}...)
       [FORMAT=data-type]
       [SKIPREC record-num]]

       [SUM [FIELDS] ({start-pos,length,data-type}...)]

       [INCLUDE COND ({start-pos,length,data-type,comparison}...)]
       [OMIT COND({start-pos,length,data-type,comparison}...)]

       GIVE output-file
       RECORD record-type,[min-length],max-length [KEY ({start-pos,length,type}...)]
       [ORG file-organization]

       [ALTSEQ CODE=({old-char1, new-char1}...)]

       [INREC [FIELDS] ({start-pos,length,}...),[TRAN=ALTSEC]]

       [OUTREC [STARTREC record-1] [ENDREC record-2]
       FIELDS][=]([{format-char}]...)
       {start-pos, length,{data-format1}TO={data-format2}
       [change-nomatch conditions]...},[TRAN=ALTSEC]]

       [OUTFIL [FIELDS][=]([{format-char}]...)
       {start-pos, length,{data-format1}TO={data-format2}
       [change-nomatch conditions]...},[TRAN=ALTSEC]]
       [OUTFIL [STARTREC record-1] [ENDREC record-2]]

       [ERROR error-file
       RECORD record-type,[min-len],max-len
       [KEY ({start-pos,length,type}...)]
       [ORG file-organization]
       [OUTREC
       [FIELDS][=]([{format-char}]...)
       {start-pos, length,{data-format1}[TO={data-format2}
       [change-nomatch conditions]...},[TRAN=ALTSEC]]]

Format 2

citsort take [sort-commmand-file ]

Back to top