Error message when compiling CL program: CPD085C 40 Graphic field not allowed for variable & OBJRTVUCS

1480 pts.
Tags:
AS/400
CL Program
Graphic field not allowed for CPD085C 40 Graphic field not allowed for variable & OBJRTVUCS is the error message I get when compiling CL Program. I'm taking output to file of a Vision WRKDG command. This ouput file I declare in the CLP.  While compiling the CL, I'm getting error 40 with message CPD085C 40 Graphic field not allowed for variable &OBJRTVUCS. How do I get over this error and compile the program?


Software/Hardware used:
CL Programming, compiling, as400, as400 clp
1

Answer Wiki

Thanks. We'll let you know when a new response is added.

To use Graphic files in CLP or CLLE programs the DCLF must have parameter ALWGRAPHIC(*YES).

Discuss This Question: 7  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • Splat
    Are you creating it as a CLP or a CLLE?
    12,835 pointsBadges:
    report
  • pdraebel
    This is what the message states :
    Message ID . . . . . . . . . :   CPD085C                                      
    Message file . . . . . . . . :   QCPFMSG                                      
      Library  . . . . . . . . . :     QSYS                                       
                                                                                  
    Message . . . . :   Graphic field not allowed for variable &1.                
    Cause . . . . . :   A graphic field was found, but ALWGRAPHIC(*NO) on the DCLF
      command was defaulted or specified.                                         
    Recovery  . . . :   Specify ALWGRAPHIC(*YES) on the DCLF command, or specify a
      file or record format that does not contain graphic fields.                 
                                                                                   µ
    So you should modify your DCLF statement.
    7,545 pointsBadges:
    report
  • JohnsonMumbai

    Iam creating a CLP. 

    I need to read the file hence need to declare the file in the program, is there an alternative to read the file without declaring it in the CLP.

    1,480 pointsBadges:
    report
  • ToddN2000
    Post your code and let us take a look. What are you looking to do with this graphic file, store it or view it?
    126,100 pointsBadges:
    report
  • JohnsonMumbai

    The issue is with the file I'm reading, which is a file created by Vision, ie our replication software. The file contains certain fields which I'm using in my program and certain fields which I do not require, the fields which I do not require when I view using WRKQRY, SELECT AND SEQUENCE FIELDS are displayed as under:

    OBJRTVUCS         LAST OBJ RETRIEVED (UNICODE)                  512   GV
    CNRSNDUCS         LAST OBJ SENT (UNICODE)                       512   GV
    OBJAPYUCS         LAST OBJ APPLIED (UNICODE)                    512   GV

    These fields generate above error while compiling the CL. I do not require these fields in my PGM, but other fields are required. Do you still need to view my PGM? If yes, then will share it.

    1,480 pointsBadges:
    report
  • pdraebel
    You should modify Your DCLF statement! There is a parameter ALWGRAPHIC that defaults to *NO.
    So DCLF File(XYZ) ALWGRAPHIC(*YES)
    7,545 pointsBadges:
    report
  • JohnsonMumbai
    Thank you, the above setting has taken care of the graphic fields and I'm not getting the error as before.
    1,480 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: