ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Any way to edit a spool file

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

  • Any way to edit a spool file

    hi mates. just a noob question. is there anyway to edit a spool file? example i compiled a cl program then I want to edit its spool file cause I want to change the date compiled.

  • #2
    Re: Any way to edit a spool file

    Short answer is ... no

    Why would you want to change the date compiled on the report anyway?

    The date compiled is also held on the object itself, so changing it on the report to look like you compiled it on a different date wouldn't make any difference.
    You don't stop playing games because you get old, You get old because you stop playing games!

    Comment


    • #3
      Re: Any way to edit a spool file

      a cheat way is to;

      1) create a flat file the same width of the report.
      2) copy the spooled file to a flat file;
      CPYSPLF FILE(MYSPOOL) TOFILE(MYFILE) JOB(THISNU/THISUSER/THISJOB) SPLNBR(*ONLY)
      3) call a program (you write) that updates the MyFile to have what you want. This program should also spit out MyFile as a new MySpool.
      4) delete the old version of MySpool.
      Hunting down the future ms. Ex DeadManWalks. *certain restrictions apply

      Comment


      • #4
        Re: Any way to edit a spool file

        wow thanks mate. I'll try it once I go back to my office. cheers! This community is very good!

        Comment

        Working...
        X