I think you need to give us some more information. I'm not familiar with XQUERY and it's quirks. What kind of response are you expecting? Is the output dataset empty?
That said, it's been so long since I've run anything in batch without REXX I don't recall if vanilla TSO reports non-zero return codes. You may want to find/tweak a mainframe version of REXXTRY, and add PARM=REXXTRY to your EXEC. Be sure to have a SYSEXEC DD for the library where you put REXXTRY. In addition to return code reporting REXXTRY let's you use most REXX features. E.g., you can set a variable to the DSN and/or VOL if the change between runs. Put your commands in quotation marks, and follow REXX syntax. It looks like you might benefit from writing a batch REXX EXEC to do that work. See these documents for more information. e741ba69-356d-4ffc-84dd-91ae1e883fb1.pdf <https://drive.google.com/file/d/1A3ZvcyAgh3reW0x0bGvSnkeB_7FXZNgX/view?usp=drivesdk> Modernizing z/OS Batch Processing <https://docs.google.com/document/d/1vwE-dAyxHg-PEXAZl1Odbf6-QWwA22a1GoSPlkJL5rI/edit?usp=drivesdk> On Sun, 24 Mar 2019, 8:43 pm Jason Cai, <ibmm...@foxmail.com> wrote: > > Hi all > > We issue a lot of TSO commands ( XQUERY NP2XRE DATASET('XXXXXXX.TST') > DISP(MOD) VOLUME(BJ2817) DETAIL ) > > by PGM=IKJEFT01 .The sample is blow: > > //S1 EXEC PGM=IKJEFT01,REGION=0M > //SYSTSPRT DD SYSOUT=* > //SYSPRINT DD SYSOUT=* > //SYSTSIN DD * > XQUERY NP2XRE DATASET('XXXXXXX.TST') DISP(MOD) VOLUME(BJ2817) DETAIL > XQUERY NP2XRE DATASET('xxxxxxx.TST') DISP(MOD) VOLUME(BJ2897) DETAIL > XQUERY NP2XRF DATASET('xxxxxxx.TST') DISP(MOD) VOLUME(BJ2917) DETAIL > > > We found there are just part of this commands responsed. > > > > Any thoughts/comments/suggestions would be greatly appreciated > > > > > > Best Regards, > Jason Cai > > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN