REV SCHEDULER® Reading a UBE .pdf REV SCHEDULER® Reading a UBE .pdf

After submitting a UBE for processing why not check any .pdf for issues in the same scheduled job that submitted the UBE.

In REV SCHEDULER we have the RJCHKPDF command that can do that.

In our GLPSOST Example we will be checking the R09801 output .pdf file for the string 'One or more batches had errors'.

GLPOST Output PDF

The Flowchart of this complete Scheduled Job looks like:

GLPOST Process Diagram

Script sequence 30 executes the RJCHKDPF and if it completes:

  • Normal – i.e. Scan string DOES NOT exist – it will then proceed to the next Sequence (Sequence 35) for a Good Batch,
  • Abnormal – i.e. Scan String DOES exist – it will proceed to the next Sequence after 100 for a Bad Batch.

GLPOST Scripts

The Script definition uses the Run Time E1 One World variables to resolve to the correct .pdf:

E:\Revsoft\Scheduler\Engine\rjchkpdf.exe  
/PDF=C:\JDEdwards\E920\PrintQueue\#OWFUF2_#OWJOBN_PDF.pdf  
/SCAN='EQ=One or more batches had errors'  
/SHOWTEXT=Y  
/MATCHCASE=N  
/RETURN=AC  

The run time E1 One World execution variable for this UBE look like:

GLPOST OneWorld Variables

This executes as:

E:\Revsoft\Scheduler\Engine\rjchkpdf.exe  
/PDF=C:\JDEdwards\E920\PrintQueue\R09801_ZJDE0001_13492_PDF.pdf  
/SCAN='EQ=One or more batches had errors'  
/SHOWTEXT=Y  
/MATCHCASE=N  
/RETURN=AC  

If the text string 'One or more batches had errors' IS NOT found the RJCHKFIL command will return NC (Normal Completion) – this will be a Good Batch.

GLPOST Job Log

If the text string ‘One or more batches had errors’ IS found the RJCHKFIL command will return AC (Abnormal Completion) – this will be a Bad Batch.

GLPOST Job Log

The complete Job Scripts look like:

GLPOST Scripts

Good Batches are processed by Script sequences 35 – 60.

GLPOST Good Batches

Bad Batches are processed by Script sequences 95 - 120.

GLPOST Bad Batches

LEARN MORE