Free format compilation error

15 pts.
Tags:
iSeries
iSeries error messages
My compilation fails when columns 1-5 of my source code is not blanks using CRTSQLRPGI.

 Columns . . . :    1 100                                      Browse  SEU==>                                                               FMT **  ...+... 1 ...+... 2 ...+... 3 ...+... 4 ...+... 5 ...+... 6 0558.00 Z001   //**************************************************** 0559.00 Z001   //* @Create_Header_Record file in QTEMP               0560.00 Z001   //**************************************************** 0561.00 Z001   BegSr @Create_header_Record ;                         0562.00 Z001                                                         0563.00 Z001   // Delete the existing file from QTEMP                0564.00 Z001      Exec SQL Drop Table QTEMP/COLHEDING ;              0565.00 Z001                                                         0566.00 Z001      Select ;                                           0567.00 Z001                                                         0568.00 Z001      When $whfldn < 11 ;                                0569.00 Z001        // Create 10 Columns                             0570.00 Z001        Exec SQL Create Table QTEMP/COLHEDING (          0571.00 Z001        col01   VARCHAR (30) NOT NULL WITH DEFAULT,      0572.00 Z001        col02   VARCHAR (30) NOT NULL WITH DEFAULT,      0573.00 Z001        col03   VARCHAR (30) NOT NULL WITH DEFAULT,      0574.00 Z001        col04   VARCHAR (30) NOT NULL WITH DEFAULT,      0575.00 Z001        col05   VARCHAR (30) NOT NULL WITH DEFAULT,      0576.00 Z001        col06   VARCHAR (30) NOT NULL WITH DEFAULT,      0577.00 Z001        col07   VARCHAR (30) NOT NULL WITH DEFAULT,     

But if I clear columns 1-5 it compiles successfully. I use columns 1-5 for revision log.

Thank,

Ramon

 



Software/Hardware used:
iSeries

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 2  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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    My compilation fails... I don't see anything in what you posted that shows us what failed. No error message, no indication of what line had a problem. Can you give us something to work with? As early as V5R3, I can use columns 1-5 with free-form and CRTSQLRPGI without problems. (I can't test earlier right now.) Tom
    125,585 pointsBadges:
    report
  • RamonTiu
    Hi Tom, Thank you very much for your reply. Our iSeries is fairly new, about 3 months old. We manage to get it working after we installed a few PTF last night. Regards, Ramon
    15 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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

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

Following