Previous Topic: SyntaxNext Topic: FIELDDISPLAY


Parameters

EMPTYRC supports the following parameter:

return-code

An integer value between 0 and 4095.

Example

The essence of this command combination is to identify whether or not there are any new customers and return a condition code of 8 if there are none. This is accomplished by comparing the two files' key value, POS(CUST-KEY). The EMPTYRC sets a return code of 8 when there are no new, inserted, records into the NEWCUSTS file, otherwise the return code is set to 0.

COMPARE,
  OLDFILE(OLDMSTR),
  NEWFILE(NEWMSTR),
  LAYOUTFILE(USER.COPYLIB(CUSTMSTR)),
  POS(CUST-KEY),		
  COMPRC(0),			
  INSERTED(NEWCUSTS)
READ,
  INFILE(NEWCUSTS).
  INLIM(1),
  EMPTYRC(8)