hi robert, i think that you dont understand what i want. i dont need to know the content of the member i just want to know if it exists or not. i have tried this:
SET &MASTER = TTTSL.PROD.COBOL
SET &ARCHIVO = ARCC2
SUBMIT * END($$)
//TTSJOP25 JOB (1,1),'ELIPSTES',
// MSGCLASS=X,CLASS=S,
// REGION=3072K
//STEP110 EXEC PGM=AFOLIBR,PARM='NRJS,NJTA'
//SYSPRINT DD SYSOUT=*
//OSJOB DD DUMMY
//MASTER DD DSN=&MASTER,DISP=SHR
//SYSIN DD *
-SEL &ARCHIVO,PERM
-END
//
$$
in the sdfd output display i can see this:
PROCSTEP RC
STEP110 12
the return code (12) indicates to me that the member does not exist, so i need to trap it, assign a value to a variable according to that return code and continue the execution of the clist. In other words, i have to wait for the finished job, check the return code , assign a value and continue de execution of the clist.
i hope to be clear now.
best regards