ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Retrive the spool file atribute

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

  • Retrive the spool file atribute

    Any one can tell me, how can i get the spool file atribute of a current job?

  • #2
    Re: Retrive the spool file atribute

    From a CL program? What attributes are you interested in?
    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: Retrive the spool file atribute

      A job created a spool file in my outq.I need the spool file number,job number,job name,user ID that created the spool file

      Comment


      • #4
        Re: Retrive the spool file atribute

        Okay - you need to either put a dataq on the outqueue or run an api.
        But if you need to run a system command on it you can use the defaults

        for example

        PHP Code:
        RLSSPLF FILE(SOMEFILESPLNBR(*LAST
        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: Retrive the spool file atribute

          I want to copy spool file in to data base file so i need the spool file number.

          Comment


          • #6
            Re: Retrive the spool file atribute

            If doing a copy from the same program all you need is the name of the spooled file.

            Then as I stated above just use the defaults for the cpysplf command ...except for the spooled file name and spooled file number.

            change spooled file number to *LAST
            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

            Working...
            X