Hi,
My Requirement is:
I have a list of datset names in a PS File coming as input to my Rexx code. I have to check whether they are migrated or not and then if migrated have to recall them and once recall is complete, I have to continue with further processing.
I tried to use "HRECALL <Dataset name> nowait" addressed to TSO region but the screen hangs till the datset is recalled. Since this REXX Routine is part of a REXX Tool I dont want to hang the system since there are large number of datasets to be recalled.
So, I tried executing a batch job for recalling.
//RECALL EXEC PGM=IKJEFT01,DYNAMNBR=20,TIME=(9)
//SYSTSPRT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSTSIN DD *
HRECALL 'datset1 ' NOWAIT
HRECALL 'datset2 ' NOWAIT
..
HRECALL 'datsetn ' NOWAIT
/*
But this returns a Maxxcc 0 after submitting the Recall request. It didnot return any information regarding the Recall request complete.
Is there a way to know whether the recall process ended or not. I want to execute the next job only after all the datsets are recalled. How this can be achieved?