ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Spool file number in INFDS?

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

  • Spool file number in INFDS?

    I need to be able to know the spool file number at the time I am writing the spool file. I would like to use the spool file number from the INFDS. I am using the following:

    Code:
    FQsysprt   O    F  132        printer OFLIND(*INOV)            
    F                                                              INFDS(TESTDS)                        
    ***************************************************************
    D                                                              
    D TESTDS          DS                                           
    D  Spool_File           103    112                             
    D  Spool_Lib            113    122            
    D  Spool_Num            123    124I 0
    So here's my question (it may be stupid), how can spool_num be defined as a 2 digit numeric field and be able to hold the six digit spool file number? Is it something with the "I" date type?

    Thanks,

    Jane22

  • #2
    Re: Spool file number in INFDS?

    This is a very good article for your question ..

    Thanks,
    Giri

    Comment

    Working...
    X