Could anyone tell me how to change the SQL below to populate by relative record number or the arrival sequence in ASCOMM? The file does not have a sequence number in which to sort the order the comments were added, so arrival sequence would work for what I need. Thanks!
C/Exec SQL
C+ Insert into QTEMP/ASCOMM
C+ Select * from MDNASDEV/ASCOMM
C+ Where CCEN = :Century and
C+ CYR = :Year and
C+ CHOUSE = :House# and
C+ CSPLTC = armSplit
C/End-Exec
C/Exec SQL
C+ Insert into QTEMP/ASCOMM
C+ Select * from MDNASDEV/ASCOMM
C+ Where CCEN = :Century and
C+ CYR = :Year and
C+ CHOUSE = :House# and
C+ CSPLTC = armSplit
C/End-Exec