Am facing the issue while validating the fields. If you see scroll down the output below after validation it should not show 'JOB ETA:02:30:00 NOTE: NO DELAY' how to avoid this... When AAA feed of first two numbers is greater than or equal to 01 it should show JOB ETA:INPROG NOTE: JOB DELAY along with input file contents.
When BBB FEED of first two numbers is less than 01 it should show JOB ETA:02:30:00 NOTE: NO DELAY along with input file contents.
Please help me to resolve this. I am struggling a lot ....
Input file
JOB LIST
DDD FEED RECEIVED AT 23.26.03
BBB FEED RECEIVED AT 00.41.22
CCC FEED RECEIVED AT 00.40.59
AAA FEED RECEIVED AT 01.28.26
DDD FEED RECEIVED AT 23.26.03
BBB FEED RECEIVED AT 00.41.22
CCC FEED RECEIVED AT 00.40.59
AAA FEED RECEIVED AT 01.28.26
Sort card
SORT FIELDS=COPY
INREC IFTHEN=(WHEN=(1,3,CH,EQ,C'AAA',AND,23,2,CH,GE,C'01'),
OVERLAY=(35:C'JOB ETA:INPROG',50:C'NOTE: JOB DELAY')),
IFTHEN=(WHEN=(1,3,CH,EQ,C'BBB',AND,23,2,CH,LT,C'01'),
OVERLAY=(35:C'JOB ETA:02:30:00',53:C'NOTE: NO DELAY'))
INREC IFTHEN=(WHEN=(1,3,CH,EQ,C'AAA',AND,23,2,CH,GE,C'01'),
OVERLAY=(35:C'JOB ETA:INPROG',50:C'NOTE: JOB DELAY')),
IFTHEN=(WHEN=(1,3,CH,EQ,C'BBB',AND,23,2,CH,LT,C'01'),
OVERLAY=(35:C'JOB ETA:02:30:00',53:C'NOTE: NO DELAY'))
Output:
JOB LIST
DDD FEED RECEIVED AT 23.26.03
BBB FEED RECEIVED AT 00.41.22 JOB ETA:02:30:00 NOTE: NO DELAY
CCC FEED RECEIVED AT 00.40.59
AAA FEED RECEIVED AT 01.28.26 JOB ETA:INPROG NOTE: JOB DELAY
DDD FEED RECEIVED AT 23.26.03
BBB FEED RECEIVED AT 00.41.22 JOB ETA:02:30:00 NOTE: NO DELAY
CCC FEED RECEIVED AT 00.40.59
AAA FEED RECEIVED AT 01.28.26 JOB ETA:INPROG NOTE: JOB DELAY