cfSOFTWARE Contact Us Technical Support About Us cfSOFTWARE

corner
pcMAINFRAME Express
corner
cfSOFTWARE - pcMAINFRAME Express RUNIF/SKIPIF Sample

pcMAINFRAME Express™ Sample Commands

 

RUNIF / SKIPIF

RUNIF and SKIPIF are the directives used to test return codes from prior requests. The associated transfer will be executed or skipped if the condition is true.


  .
  .
  .
 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.