All of these statements, except DECODE, function as described in previous examples.
The DECODE statement assigns values to the work field DEPT NAME that was created by the DEFINE(K) statement earlier. CA JARS Wizard examines the first position of the USER INFO field in each input record and looks for a match in the DECODE table. If there is one, it assigns the corresponding department name to the DEPT NAME field. If there is no match, it gives DEPT NAME a value of UNKNOWN DEPT CODE.
| Copyright © 2012 CA. All rights reserved. |
|