>>Is there a DFSORT or ICETOOL statement where the output contains headers plus a line saying 'No selected records found' if nothing selected is found?
Elardus, It can be done , however I need a few more details. 1. How are you selecting the data? (using INCLUDE/OMIT COND or OUTFIL INCLUDE/OMIT ?) 2. What is the LRECL and RECFM of the dataset? 3. Does the header already exist in the input file and is it the first 2 records in the file? or can this be generated? Thanks, Kolusu DFSORT Development IBM Corporation From: Elardus Engelbrecht <elardus.engelbre...@sita.co.za> To: IBM-MAIN@LISTSERV.UA.EDU Date: 05/30/2017 07:14 AM Subject: DFSORT with empty outputs Sent by: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> Good day to all DFSORT gurus Is there a DFSORT or ICETOOL statement where the output contains headers plus a line saying 'No selected records found' if nothing selected is found? Something like this: User id User Name Dflt Group Created Last Used -------- -------------------- ---------- ---------- ---------- ABC001 ABC USER ABCDEF 2000-09-29 2017-05-29 But when nothing is found I would like to say this: User id User Name Dflt Group Created Last Used -------- -------------------- ---------- ---------- ---------- No ids found. This is similar to zSecure where you can say: newlist rds name=GRP, header=no, dd=grp, title='Users in group ABCDEF',empty='No users found in group ABCDEF', ... For zSecure, you either get a list of results or a statement that report has no selected results. Is there something for DFSORT/ICETOOL? Many thanks in advance for your kind help! Groete / Greetings Elardus Engelbrecht ---------------------------------------------------------------------- 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