|
At a very casual glance,--
- RPG IV 101 - the literals need to be uppercase:
OvrFile = 'lib1/fl1' ;
Ovrmbr = 'sq9' ;
- and coding typo:
Dow Not %Eof(QRPGSRC) ;
- and shouldn't you be closing the file you opened?
Close QRPGSRC ;
Brian.
On 14/01/2020 07:50, techie21 IT wrote:
Hi,and
Thanks SQL alias seems to work but below program is not getting
compiled itself.
**Free
Dcl-F FL1 Extfile(OvrFile) Extmbr(OvrMbr) Usage(*Update)
Rename(Qrpgsrc:Rqrpgsrc) usropn;
Dcl-S OvrFile Char(21);
Dcl-S OvrMbr Char(10);
OvrFile = 'lib1/fl1' ;
Ovrmbr = 'sq9' ;
Open fl1 ;
Read RQRPGSRC ;
Dow Not %Eof(QRPGSRC) ;
If srcdat = 190109;
srcdat = 0;
Update fl1 ;
EndIf;
Read RQRPGSRC ;
EndDo;
Close QRPGSRC ;
*Inlr = *On;
getting below errors for above program whereas FL1 source file in
LIB1
member SQ9 do exist in lib. lib1 and in source physical file FL1.is
Msg id Sv Number Message text
RNF7030 30 3 The name or indicator is not defined.
RNF7451 30 1 A built-in function is not defined; built-in function
ignored.*
RNF7503 30 5 Expression contains an operand that is not defined.
RNF2120 40 1 External description not found for file specified as
externally described; file ignored.
* * * * * E N D O F M E S S A G E S U M M A R Y * * * *
Return;
--
This is the RPG programming on IBM i (RPG400-L) mailing list To post a
message email: RPG400-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe,
or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.