Unconfigured Ad Widget

Collapse

Announcement

Collapse
No announcement yet.

TechTip: Spooled Files and PDF, Part Two

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

  • TechTip: Spooled Files and PDF, Part Two

    ** This thread discusses the article: TechTip: Spooled Files and PDF, Part Two **
    ** This thread discusses the Content article: TechTip: Spooled Files and PDF, Part Two **
    0
    Last edited by A.Grubb; 03-04-2019, 04:05 PM.

  • #2
    TechTip: Spooled Files and PDF, Part Two

    ** This thread discusses the article: TechTip: Spooled Files and PDF, Part Two **
    For some reason I did not look at Part 1 of this article when it was originally sent, but I now realize that it will achieve something I was discussing with a client only yesterday. Except that for a number of reasons we are both still running version 4.4, which cannot understand many of the latest RPGLE changes. One solution would be to upgrade, but on 150 that would mean a more powerful box. Another would be to convert the programs to fixed format ILE RPG. I have other clients on version 4.5 so I could compile there, but does anyone know if the programs use functions that would not be avaliable if I set the target release to V4R4M0? Must get out of this time warp one day! Many thanks Peter Kinsman
    Last edited by A.Grubb; 03-04-2019, 04:05 PM.

    Comment


    • #3
      TechTip: Spooled Files and PDF, Part Two

      ** This thread discusses the article: TechTip: Spooled Files and PDF, Part Two **
      I think that if you rewrite the code in fixed format, it should work as well. The C compression will work too, but maybe you don't have the compiler because it bacame free starting from V5R1. But you can try to get the C modules compiled in a V5 for previous release and link them with the RPG, then create the final program.
      Last edited by A.Grubb; 03-04-2019, 04:05 PM.

      Comment


      • #4
        TechTip: Spooled Files and PDF, Part Two

        ** This thread discusses the article: TechTip: Spooled Files and PDF, Part Two **
        Giuseppe hi, I tried to compile the SCS2PDFR's new version but the compile failed. I followed your instructions in creating the relevant directories in the IFS and downloading the 'c' and 'h' sources accordingly. After making the relevant changes for release 5.1, it failed to compile and displayed the following statements (see code below). Can you help ? Moti.
        Code
        Last edited by A.Grubb; 03-04-2019, 04:06 PM.

        Comment


        • #5
          TechTip: Spooled Files and PDF, Part Two

          ** This thread discusses the article: TechTip: Spooled Files and PDF, Part Two **
          Make sure you compiled with the enclosed REXX procedure. Try to add the QC2LE in the CRTPGM (that seems unnecessary at v5r2):
          Code
          Last edited by A.Grubb; 03-04-2019, 04:06 PM.

          Comment


          • #6
            TechTip: Spooled Files and PDF, Part Two

            ** This thread discusses the article: TechTip: Spooled Files and PDF, Part Two **
            I have the new version up and running. Thanks for including the code to handle overprinting and enlarging the output file size.
            Last edited by A.Grubb; 03-04-2019, 04:06 PM.

            Comment


            • #7
              TechTip: Spooled Files and PDF, Part Two

              ** This thread discusses the article: TechTip: Spooled Files and PDF, Part Two **
              Giuseppe hi, Thank you very much. All it needed was to add the QC2LE in the CRTPGM. It may not be needed at v5r2 but I still am at the v5r1 level. Anyway it works now. All I need now is for you to release Part Three and maybe there I'll find some way to be able to translate the Hebrew alphabet. Thank you very much again, Moti.
              Last edited by A.Grubb; 03-04-2019, 04:06 PM.

              Comment


              • #8
                TechTip: Spooled Files and PDF, Part Two

                ** This thread discusses the article: TechTip: Spooled Files and PDF, Part Two **
                I have managed to convert the two programs to a version of RPGIV which will run at v4.4 The main obstacles were the lack of %TIME and %DATE Built In Functions and the inability to specify which member of CPYSPOOL would be opened. For the first two, I used the TIME Operation Code and rather than use the DoCmd to do an OVRDBF, I did this within the CL program. If anyone is in a similar position, I would be pleased to email the necessary code. Peter Kinsman
                Last edited by A.Grubb; 03-04-2019, 04:06 PM.

                Comment


                • #9
                  TechTip: Spooled Files and PDF, Part Two

                  ** This thread discusses the article: TechTip: Spooled Files and PDF, Part Two **
                  Hi Mr peterkin9 Our company is still running on V4R4 and probably will not upgrade until the AS400 have serious problem. I would appreciate if you could email me your RPG IV fixed format version of the program as I was unable to program in RPG free format. Thanks and regards Araman ([email protected]) ([email protected])
                  Last edited by A.Grubb; 03-04-2019, 04:06 PM.

                  Comment


                  • #10
                    TechTip: Spooled Files and PDF, Part Two

                    ** This thread discusses the article: TechTip: Spooled Files and PDF, Part Two **
                    If you have a lot of overprinting, the STREAM buffer cannot be large enough and the program crashes. To fix this you can enlarge some fields as in the code section.
                    Last edited by A.Grubb; 03-04-2019, 04:07 PM.

                    Comment


                    • #11
                      TechTip: Spooled Files and PDF, Part Two

                      ** This thread discusses the article: TechTip: Spooled Files and PDF, Part Two **
                      Btw if you want to get a better highlight effect you can try BuildStream('0.05 0.15 TD'+LF:13); instead of BuildStream('0 0 TD'+LF:7);
                      Last edited by A.Grubb; 03-04-2019, 04:07 PM.

                      Comment


                      • #12
                        TechTip: Spooled Files and PDF, Part Two

                        ** This thread discusses the article: TechTip: Spooled Files and PDF, Part Two **
                        Hi Moti! Have you found the way how to translate Hebrew ? I well tank you if you send me the solution. Thanks
                        Last edited by A.Grubb; 03-04-2019, 04:07 PM.

                        Comment


                        • #13
                          TechTip: Spooled Files and PDF, Part Two

                          ** This thread discusses the article: TechTip: Spooled Files and PDF, Part Two **
                          Please email me your solutions as well. I am very grateful for your assistance. Walt Bennett [email protected]
                          Last edited by A.Grubb; 03-04-2019, 04:07 PM.

                          Comment


                          • #14
                            Downloadable Code

                            ** This thread discusses the article: TechTip: Spooled Files and PDF, Part Two **
                            See attached file.

                            Victoria Mack
                            Executive Editor
                            MC Press Online
                            Attached Files
                            Last edited by A.Grubb; 03-04-2019, 04:08 PM.

                            Comment

                            Working...
                            X