JeffMuller608908

Understanding Modify_State

Discussion created by JeffMuller608908 on Sep 1, 2017
Latest reply on Sep 5, 2017 by Peter WIRFS
The script below is in each on of our peoplesoft jobs in the post process tab.  I understand that it is reading the report of the job and looking for status=17.  It looks to me that it then reads the MODIFY_STATE RETCODE and sets it to one.  My thinking must not be correct because if it did that then the status would be set to ENDED_NOT_OK and the next job in the process flow would not run because of the task properties.  So I need help in understanding exactly what this scrip is doing.  Thanks

! Checking the report for process status resulting in success with warnings.
! Searching for lines containing the text "status=17".  The REP report tab
! contains output from PeopleSoft
: SET &HND_REPORT# = PREP_PROCESS_REPORT(,,REP, '*status=17*')

! Each retrieved line is written in the post-processing report.
: PROCESS &HND_REPORT#
:   SET &LINE# = GET_PROCESS_LINE(&HND_REPORT#)
:   PRINT '&LINE#'

! Modify the return code of the Job
:   MODIFY_STATE RETCODE = 1
!:   MODIFY_STATE STATUS_TEXT = 'Success with warning'
:   PRINT 'PeopleSoft process completed successfully but with warnings. Changed UC4 job status to ENDED_OK, return code = 1.'
: ENDPROCESS

Outcomes