ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

copy spoolfile to ifs

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • copy spoolfile to ifs

    Hi @all,

    i like to send a Spool-File as email-attachement per (php on i5) .
    So i need to copy the spool file to the ifs.

    With cpysplf this should be easy, but the highlighted Text in the spool-File will be added twice in the copied Spool-File on the ifs.

    Does anybody know how to handle this ?

    bye jogi

  • #2
    Re: copy spoolfile to ifs

    Just a shoot in the stars but what's going on when the spooled file is first converted in pdf file ?
    Philippe

    Comment


    • #3
      Re: copy spoolfile to ifs

      if i create a pdf, i use php with fpdf.
      So i have to read the spool and write the rows in the pdf.

      the problem will be same.

      I should scan the rows, but if the text in the spool-row is bold, the text comes twice.
      How can i handle this ?

      Comment


      • #4
        Re: copy spoolfile to ifs

        save the last line written and if the next line is "exactly" the same (==)
        then dont send to fpdf.


        jamie
        All my answers were extracted from the "Big Dummy's Guide to the As400"
        and I take no responsibility for any of them.

        www.code400.com

        Comment


        • #5
          Re: copy spoolfile to ifs

          hi jamie,

          there are not two lines.
          when a string is bold in the spool, it comes two times like
          Date Date 12092008

          Comment


          • #6
            Re: copy spoolfile to ifs

            Hi,

            this may be no help, but could explain why all bold textes are duplicated:

            I assume it is an old printerfile.
            In former times bold textes were often produced by double printing the same row (without line feed).

            In this way a CPYSPLF may duplicate all highlighted texts.

            Birgitta

            Comment

            Working...
            X