Skip to content

CitSORT® Options, Statements and Clauses

Clauses

SORT clause

Activates the SORT mode.
The SORT mode is the default work mode.
The Input files (USE clauses) are read and sorted into the output files (GIVE clauses) in ASCII order.

SORT EBCDIC clause

Activates the SORT EBCDIC mode.
The Input files (USE clauses) are read and sorted into the output files (GIVE clauses) in EBCDIC order.

MERGE clause

Activate the MERGE mode.
The Input files (USE clauses) are read and written into the output files (GIVE clauses). No sort is performed.

COPY clause

COPY Work Mode is equivalent to MERGE.

SIGN-EBCDIC clause

SIGN-EBCDIC determines the output type of sign in a signed, numeric field. By default, the output is ASCII whether input is ASCII or EBCDIC. Using SIGN-EBCDIC will result in EBCDIC output.

General Format:

[SIGN-EBCDIC]

Examples:

Placement of the SIGN-EBCDIC clause:

       >CITSORT SIGN-EBCDIC USE PRESIDENTS.DAT RECORD F 85 SORT FIELDS (1,2,NU,D) 
       GIVE PRES2.TXT ORG LS
Back to top