Problem:
When trying to run a ROLLBACK with ROLLBACK3490, it is possible to get an error message from the sort utility such as:
CASD203E WRONG LENGTH RECORD 00000
Environment:
CA-IDMS and release, any operating system.
Cause:
For some SORT packages, the SORT FIELDS= parameter alone is not sufficient.
Resolution:
The CA IDMS Utilities manual, in the section on ROLLBACK, indicates that when using the ROLLBACK3490 option, the archive journal must first be sorted with the following input parameter:
SORT FIELDS=(13,16,BI,D)
This may not be specific enough. For some sort utilities, it may be necessary to add this:
SORT FIELDS=(13,16,BI,D) RECORD TYPE=F,LENGTH=32000 INPFIL BLKSIZE=32000 OUTFIL BLKSIZE=32000
In the above example, 32000 is the blocksize of the archive journal file.
Additional Information:
For more information, see the manual CA IDMS Utilities Guide chapter 5 "Utility Statements", "ROLLBACK", "Usage" and scroll to the section with the heading "Disk journal file".