[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get and HTML file before reading it from IFS to send it by sendmail_h



   You can't really replace values in a stream file...
   You're not dealing with records and columns, you're dealing with a
   stream of bytes.� Thus the usual process is to read the source file
   and write it out to another with the updates you want.
   PC applications read the entire file into memory and allow you to make
   changes to the in-memory copy.� Then when you save, they write the
   entire file back out.
   You simply can't replace 5 characters with 10 characters in the
   original IFS file. �   Having said that, if you happen to want to replace 10 character with
   another 10 characters, that can be done
   �- read the data starting from position A into a buffer
   �- update the data in the buffer
   �- reposition the file pointer to position A
   �- write out the buffer
   Charles

   On Mon, Sep 14, 2015 at 8:55 AM, Programador IBMi
   <[1]hn000246@xxxxxxxxx> wrote:

     � �Good Morning Everyone,
     � �I'm reading an html file located a a IFS folder using the�     ifsio_h
     � �utility from Scott, but I need to know how I can access that
     � �information to replace values and send it by mail using the
     sendmai_h
     � �tool.
     � �I would like some kind of rpgile example to know How to do it,
     I'm a
     � �rookie in this kind of process hope you can guide me.
     � �Thanks again for your valuable help
     � �Have a blessed week!
     � �Best Regards,
     --------------------------------------------------------------------
     ---
     This is the FTPAPI mailing list.� To unsubscribe, please go to:
     [2]http://www.scottklement.com/mailman/listinfo/ftpapi
     --------------------------------------------------------------------
     ---

References

   1. mailto:hn000246@xxxxxxxxx
   2. http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------