DCL-1050-00-E NEXT valid only for DB-OBTAIN

The keyword NEXT or NEXTREC pertains only to retrievals. It generates an unqualified retrieval call. It is therefore valid only for a DB-OBTAIN.
Restriction: This topic applies only when the AppMaster Builder AddPack has been installed, and applies only to Windows platforms.