Thanks for making that pointer Gerhard. I failed to mention that before although I always use the exit routines rather than the overhead of I/O. I usually buffer the SYSPRINT and if the request was successful it just gets reused. If the request fails, the IDCAMS messages can be reported, which saves me documenting error messages ;-)

Dan

-----Original Message----- From: Gerhard Postpischil Sent: Friday, June 17, 2011 2:38 PM Newsgroups: bit.listserv.ibm-main Subject: Re: CAMLST MACRO question

On 6/16/2011 6:21 PM, Dan D wrote:
You might want to consider calling IDCAMS to perform a DELETE.

I agree, but would like to make an observation. I've seen
umpteen programs that call IDCAMS, and they all (dynamically)
allocated a SYSIN and SYSPRINT (or arbitrary DD names with an
override list), wrote the command to SYSIN, and read the results
from SYSPRINT. Which makes me wonder whether anybody reads
printed manuals any more. There is a figure showing how to use
the SYSIN/SYSPRINT exit, avoiding the need for allocation and
I/O), but in early versions of electronic copies the figures
were omitted.


Gerhard Postpischil
Bradford, VT

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to