Re: DFSORT - ICETOOL - Search for text and replace with date

2016-09-13 Thread Elardus Engelbrecht
Bill Woodger wrote: >It would be ironic if Elardus followed your advice, only to find that his >IEBGENER is an alias of ICEGENER and that DFSORT will be used for operations >without any IEBGENER control cards. I'm aware of ICEGENER and such. In fact, CustomPac includes some IVP checks to

Re: DFSORT - ICETOOL - Search for text and replace with date

2016-09-13 Thread Bill Woodger
If there's only one thing to change per line (maximum, or limit) I always use DO=1 on the FINDREP. If there's a limit to where the data can start, end, or both, there's STARTPOS and ENDPOS. Use IFTHEN=(WHEN=(logicalexpression) to only allow the FINDREP to operate on the expected records.

Re: DFSORT - ICETOOL - Search for text and replace with date

2016-09-13 Thread Sri h Kolusu
>> Rexx covers this by guaranteeing that if a single clause contains (any number of) references to TIME() and DATE() the TOD clock will be read only once and that value used for all. The TIME macro should nave no need to read the TOD clock more than once. Paul, If that is the definition of the

Re: DFSORT - ICETOOL - Search for text and replace with date

2016-09-13 Thread Elardus Engelbrecht
Sri h Kolusu wrote: >You just need to define a symbol for the current date and you can use it in >FINDREP. You do not code OPTION COPY when you use COPY verb of ICETOOL. >Here is a sample >//SYMNAMES DD * >CURRDATE,S'' >//SORTCNTL DD * > OUTREC FINDREP=(IN=C'MMDD',OUT=CURRDATE)

Re: DFSORT - ICETOOL - Search for text and replace with date

2016-09-13 Thread Paul Gilmartin
On Tue, 13 Sep 2016 09:06:28 -0700, Sri h Kolusu wrote: >>> You could consider: //SYSUT1 DD *,SYMBOLS= instead of ICETOOL and >substitute the dynamic system symbols for and , however: > >What exactly is the midnight pitfall? If you used the LOCAL system symbols >then you would get the

Re: DFSORT - ICETOOL - Search for text and replace with date

2016-09-13 Thread Sri h Kolusu
>> You could consider: //SYSUT1 DD *,SYMBOLS= instead of ICETOOL and substitute the dynamic system symbols for and , however: Paul, DFSORT has the ability to read system symbols defined here http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/iea2e2c2/2.2.2? > Does ICETOOL cover

Re: DFSORT - ICETOOL - Search for text and replace with date

2016-09-13 Thread Richard Pinion
That should be "FAMILIAR" not "FAMILAR"! --- rpin...@netscape.com wrote: From: Richard Pinion To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: DFSORT - ICETOOL - Search for text and replace with date Date: Tue, 13 Sep 2016 08:57:22 -0700 That should be

Re: DFSORT - ICETOOL - Search for text and replace with date

2016-09-13 Thread Richard Pinion
That should be "familar" not "family"! --- rpin...@netscape.com wrote: From: Richard Pinion To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: DFSORT - ICETOOL - Search for text and replace with date Date: Tue, 13 Sep 2016 08:56:07 -0700 While not

Re: DFSORT - ICETOOL - Search for text and replace with date

2016-09-13 Thread Richard Pinion
While not directly related to your question, but are you family with XMITIP from Lionel B. Dyck? Real handy stuff for emailing and attachments from the mainframe. --- skol...@us.ibm.com wrote: From: Sri h Kolusu To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re:

Re: DFSORT - ICETOOL - Search for text and replace with date

2016-09-13 Thread Paul Gilmartin
On Tue, 13 Sep 2016 10:36:18 -0500, Elardus Engelbrecht wrote: > >Now, a client asked whether it is possible to insert run date in the file >names of those attachments for easy retrieval at a later stage. > >//INVOER DD *

Re: DFSORT - ICETOOL - Search for text and replace with date

2016-09-13 Thread Sri h Kolusu
Elardus Engelbrecht, You just need to define a symbol for the current date and you can use it in FINDREP. You do not code OPTION COPY when you use COPY verb of ICETOOL. Here is a sample //SELECT EXEC PGM=ICETOOL //TOOLMSG DD SYSOUT=* //SYMNAMES DD * CURRDATE,S'' //DFSMSG DD

DFSORT - ICETOOL - Search for text and replace with date

2016-09-13 Thread Elardus Engelbrecht
Good day to all DFSORT gurus Background: I have setup an automated e-mail reporting system which grab reports from various inputs, then I use IEBGENER to build up one PS file containing data in this sequence: e-mail body - report - boundary data - next report - ... etc ... (In this way I can