cfSOFTWARE Contact Us Technical Support About Us cfSOFTWARE

corner
pcMAINFRAME Express
corner
cfSOFTWARE - pcMAINFRAME Express MAXRC/LASTRC/USERRC Sample

pcMAINFRAME Express™ Sample Commands

 

MAXRC / LASTRC / USERRC

These are constants that contain the return code values set during processing and available for RUNIF or SKIPIF testing.

MAXRC carries the highest non-user return code value.

LASTRC carries the return code of the last completed UPLOAD, DOWNLOAD or PCSCRIPT.

USERRC carries the value set by the last QUIT command executed in a PCSCRIPT.

 
  .
  .
  .
 UPLOAD
  SKIPIF(USERRC,EQ,239)
  DEV(ESDS)
  DDNAME(PCMTEF2)
  PCFILE(C:\PCMFTEST\UPDATA\PCMXALL.1)

 DOWNLOAD
  RUNIF(MAXRC,EQ,0)
  DEV(ESDS)
  DDNAME(PCMTEF3)
  PCFILE(PCFILE.TXT)
  .
  .
  .
 /*

 

This is a simple fragment of a command file. A more complete Sample Job Stream is available.