DCL-1410-00-E VIEW keyword followed by is required for this

If you specify the keyword NEXT, NEXTREC, or IMSREC, then follow the keyword VIEW with a view name.
Restriction: This topic applies only when the AppMaster Builder AddPack has been installed, and applies only to Windows platforms.