FUNL0156 Attempt to UNLOAD SORT or HASH field: occurrence (occ) of field (field).

From m204wiki
Jump to navigation Jump to search

This message indicates that you used the UNLOAD field statement to unload the HASH or SORT field occurrence in a record which has already been implicitly unloaded. This is not allowed; you must correct your FUEL program to remove the UNLOAD field statement with this field and occurrence, or change the field and/or occurrence of the UAI HASH or SORT statement, or use the AS PLACED clause, if you are using UAI SORT.

If you use AS PLACED and you are unloading any partial records, note that the first SORT field will not be unloaded unless you explicitly execute an UNLOAD field statement for it.