× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Was there not an issue with locally defined variables and the sql precompiler not recognizing them on V6R1M0 (from the compile listing). Could you try moving the definition to the top of the program so it's globally defined?

Rob

On 1/4/2016 11:57 AM, Hoteltravelfundotcom wrote:
HI I have removed the space but it's still failing - I do a 14 on the
source.


5761ST1 V6R1M0 Create SQL ILE RPG Object CREATELOC
Record *...+... 1 ...+... 2 ...+... 3 ...+... 4 ...+... 5 ...+... 6
...+... 7
120 Where FIRST00001 =:@Location1;

5761ST1 V6R1M0 080215 Create SQL ILE RPG Object
CREATELOC
DIAGNOSTIC MESSAGES

MSG ID SEV RECORD TEXT

SQL0312 30 120 Position 36 Variable @LOCATION1 not defined or not

usable.

Message Summary

Total Info Warning Error Severe Terminal

1 0 0 0 1 0

30 level severity errors found in source

310 Source records processed


On Mon, Jan 4, 2016 at 11:50 AM, Michael Ryan <michaelrtr@xxxxxxxxx> wrote:

Looks like there's a space between the colon and @Location1. Remove the
space.

On Mon, Jan 4, 2016 at 11:44 AM, Hoteltravelfundotcom <
hoteltravelfun@xxxxxxxxx> wrote:

HI Am getting not compiling error here:

Record *...+... 1 ...+... 2 ...+... 3 ...+... 4 ...+... 5 ...+... 6
...+... 7
120 Where FIRST00001 =: @Location1;

5761ST1 V6R1M0 080215 Create SQL ILE RPG Object
CREATELOC
DIAGNOSTIC MESSAGES

MSG ID SEV RECORD TEXT

SQL0312 30 120 Position 37 Variable @LOCATION1 not defined or not

usable.


But @Location1 does exist here:

0010.00 D @Location s 10a
0011.00 D @Location1 s 1a
0012.00 D @Location2 s 1a
0013.00 D @Location3 s 2a
0014.00 D @Location4 s 1a
0015.00 D @Location5 s 2a

this is the full source:

0116.00 /free
0117.00
0118.00 Exec SQL
0119.00 delete from Position1
0120.00 Where FIRST00001 =: @Location1;
0121.00
0122.00 /end-free
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.


--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.