I have a PS with the Following Data sample:
PXXXXLP0000001 STATUS INSTALLSITE OWNER TIME EXECUTION_WINDOW
PACKAGE NOTES PROVIDED BY USER
PXXXXLP0000001 STATUS INSTALLSITE OWNER TIME EXECUTION_WINDOW
*================================================================
*================================================================
*INSTALL: OWNER
*INSTALL: SITE
*INSTALL: LPAR YYYYMMDD @ HH:MM
*INSTALL: LPAR YYYYMMDD @ HH:MM
*================================================================
PXXXXLP0000001 STATUS INSTALLSITE OWNER TIME EXECUTION_WINDOW
PXXXXLP0000001 STATUS INSTALLSITE OWNER TIME EXECUTION_WINDOW
PXXXXLP0000002 STATUS INSTALLSITE OWNER TIME EXECUTION_WINDOW
PACKAGE NOTES PROVIDED BY USER
PXXXXLP0000002 STATUS INSTALLSITE OWNER TIME EXECUTION_WINDOW
*================================================================
*================================================================
*INSTALL: OWNER
*INSTALL: SITE
*INSTALL: LPAR YYYYMMDD @ HH:MM
*INSTALL: LPAR YYYYMMDD @ HH:MM
*================================================================
PXXXXLP0000002 STATUS INSTALLSITE OWNER TIME EXECUTION_WINDOW
PXXXXLP0000002 STATUS INSTALLSITE OWNER TIME EXECUTION_WINDOW
PXXXXLP0000002 STATUS INSTALLSITE OWNER TIME EXECUTION_WINDOW
PXXXXLP0000002 STATUS INSTALLSITE OWNER TIME EXECUTION_WINDOW
. and so on...
I want to the output file to have Data of Package which has YYYYMMDD & falls in last week, this week and Next Week.
Like this sample if Pacakge PXXXXLP0000002's INSTALL YYYYMMDD satisfy the above:
PXXXXLP0000002 STATUS INSTALLSITE OWNER TIME EXECUTION_WINDOW
PACKAGE NOTES PROVIDED BY USER
*================================================================
*================================================================
*INSTALL: OWNER
*INSTALL: SITE
*INSTALL: LPAR YYYYMMDD @ HH:MM
*INSTALL: LPAR YYYYMMDD @ HH:MM
*================================================================
I tried this in REXX as REXX can read specified Records. But REXX ABENDS with Space issue as the Input PS might be more than 20K records.
So plan to use JCL in REXX, but can't Figure out How to use SORT utility to get the Previous Records when YYYYMMDD satisfy the COND.
I came across PUSH(1:133,SEQ=1) to get a set of Records after COND is satisfied, Is there any such to get the set of Records before the COND is satisfied.
Also can't Remove the Duplicate records of the Package information without Removing all Duplicates in the PS,
For instants,
*INSTALL: OWNER ----Record might be repeated for some other Package too,
SORT FIELDS=COPY
SUM=NONE
removes Every Duplicates and OMIT removes all Package Info Records.
Is there a way to Remove Duplicated with COND?
If this was already discussed please direct me. I tried searching but Hit no Jackpot!