Return to the RPG Tips
Comparing Uppercase vs. Upper/lower case fields
To make the IF statement and fileoperation opcodes case-insensitive you need
to specify the following keywords in your H-spec:
H AltSeq( *EXT )
H SrtSeq( *LANGIDSHR )
H LangId( *JOBRUN )
- The following fileoperation opcodes are affected by the setting mentioned
above:
CHAIN, SETLL, SETGT, READE and READPE
If you had applied a special sort sequence (f.x. *LANGIDSHR) to a file and
wanted to perform one of these opcodes against the file, the AltSeq, SrtSeq
and LangId keywords would be necessary for the opcodes to work in accordance
with the file's sort attributes, and position the file correctly. If you did
not, the program and the file would be using two different sort tables.
Best regards,
Carsten Flensburg
Found in the RPG-L mailing list, subscribe at: http://lists.midrange.com/mailman/listinfo/rpg400-l
[report a broken link by clicking here]