ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Create new SPLF when report generated

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

  • Create new SPLF when report generated

    Right now I'm at the end of writing a report that is run interactively. The user enters in some criteria on the screen they press F6 and I process a report. When I process the report I don't end the program, I leave the screen up. This way the user could then change some criteria and run it again.

    The problem comes in when they hit F6 the second time. The program writes to the same spool file that it has written to the last time the user pressed F6. Any suggestions on forcing a new spool file to be generated each time the user presses F6? I know that I could submit a job each time, but is there another way?
    Your future President
    Bryce

    ---------------------------------------------
    http://www.bravobryce.com

  • #2
    Re: Create new SPLF when report generated

    make the spooled file usropn
    Code:
    fCIT0001PR o    e             printer usropn   oflind(*in70)        
    
    
     if        %open(CIT0001PR)      
     close     CIT0001PR             
     endif
    then open and close it.....


    KAPOW just like magic
    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


    • #3
      Re: Create new SPLF when report generated

      KAPOW! I was wondering if that might not do it... I love magic!
      Your future President
      Bryce

      ---------------------------------------------
      http://www.bravobryce.com

      Comment


      • #4
        Re: Create new SPLF when report generated

        my magic is all Wiccan magic........................
        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: Create new SPLF when report generated

          I will have to recant on my previous positive statement about magic. Any endorsement of Wiccan magic will make me look like a nut job when I'm running for President. Sorry, nothing personal, strictly a professional decision
          Your future President
          Bryce

          ---------------------------------------------
          http://www.bravobryce.com

          Comment


          • #6
            Re: Create new SPLF when report generated

            whatever....... If I get home in time and the moon is full
            I may just cast a spell on you! and I aint talkin no sissy wiccan white magic....
            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


            • #7
              Re: Create new SPLF when report generated

              who do voodoo??
              I'm not anti-social, I just don't like people -Tommy Holden

              Comment

              Working...
              X