Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

SYNCSORT :: SYNCSORT SEQNUM and FI fields.

$
0
0
Author: nartcr
Subject: SYNCSORT SEQNUM and FI fields.
Posted: Sat Jan 21, 2017 4:02 am (GMT 5.5)

I have the following table layout from DSNTIAUL:

Code:
LOAD DATA LOG NO INDDN SYSREC00 INTO TABLE
    TBLNAME
 (
 TEST__ID                               POSITION(       1         )
 INTEGER                       ,
 TEST_SID                               POSITION(       5         )
 SMALLINT                      ,
 TEST_DTE                               POSITION(       7         )
 DATE EXTERNAL(            10) ,
 TEST_TME                               POSITION(      17         )
 TIME EXTERNAL(             8) ,
 TEST_FORM_ID                           POSITION(      25         )
 INTEGER                       ,
 TEST_USR_ID                            POSITION(      29         )
 INTEGER
 )


What I am doing is, to sequence the SID number after unloading the table in a flat file.

Code:
//SYSIN    DD   *
  SORT FIELDS=(1,4,FI,A,5,2,FI,A)
  OUTREC IFTHEN=(WHEN=INIT,
                 OVERLAY=(5:SEQNUM,2,BI,RESTART=(1,4)))
  OUTFIL BUILD=(1,80)
/*


Apparently, this code wouldn't work, because format FI ( equivalent of smallint ) is not supported in SEQNUM field. Do you have any suggestion on how do I get around this problem? We are using SYNCSORT 2.1.0

After I sequence the SID, I would be reloading the data back to the table.


Viewing all articles
Browse latest Browse all 8500

Trending Articles