ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

A problem about Referenced field

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

  • A problem about Referenced field

    hi,all

    There is some error message within spool file while i compile a source file.

    message:[File specified on REF or REFFLD keyword not found.]

    but the referred file is in library-list.

    any ideas?

  • #2
    Re: A problem about Referenced field

    Just guesses :
    1. The reference file library is not in your library list.
    2. You dont have authority to the reference file.
    3. The field name you used from the reference file was misspelled (miss keyed)
    4. You are submitting the compile and your JOBD is set up to use an assigned library list and not *Current.


    To test some of these try to compile interactive
    use addlible to set up library list.

    wrkmbrpdm then hit then compile in batch 'N'

    see if it compiles then...If not we are left with
    a authority problem or a miss keyed word.

    Welcome to code400
    jamie
    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: A problem about Referenced field

      Originally posted by jamief
      Just guesses :
      1. The reference file library is not in your library list.
      2. You dont have authority to the reference file.
      3. The field name you used from the reference file was misspelled (miss keyed)
      4. You are submitting the compile and your JOBD is set up to use an assigned library list and not *Current.


      To test some of these try to compile interactive
      use addlible to set up library list.

      wrkmbrpdm then hit then compile in batch 'N'

      see if it compiles then...If not we are left with
      a authority problem or a miss keyed word.

      Welcome to code400
      jamie
      Referenced field not translatable


      Code:
      A          R R01                   
      A*                                 
      A            RMECNO         8  0

      Code:
      A                                      REF(PP)        
      A          R R02                                      
      A            RXX       R               REFFLD(RMECNO)

      Comment

      Working...
      X