× 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.



Thanks,

How do I tell the RPG compiler that my array DS is Keyed Array Data
Structure and which subfield is the key?




Well, for a start, %LOOKUPLT requires the array to be declared as a
sorted array (to have an ascending or descending order). Otherwise
"less than" doesn't make a lot of sense. %LOOKUP has the option of
searching through all the elements if it needs to.

John Y.


Keyed Array Data Structure %LOOKUPLT (Dave)
date: Fri, 30 Apr 2021 13:27:42 +0200
from: Dave <dfx1@xxxxxxxxxxxxxx>
subject: Keyed Array Data Structure %LOOKUPLT

Hi,

I have this lookup problem. Can't believe it.
IBM reference says : A "Keyed Array Data Structure" is an array data
structure with one subfield
identified as the search or sort key.

I don't see how to identify one subfield as the search or sort key or where
this is explained.

This compiles :
$I = %LOOKUP ( myDate : myArray(*).DATE )

This doesn't
$I = %LOOKUPLT ( myDate : myArray(*).DATE )

My Array DS :

D myArray DS DIM(10) QUALIFIED
D CODE LIKE(refcode)
D DATE LIKE(refdate)

Thanks


------------------------------

message: 5
date: Fri, 30 Apr 2021 11:34:53 +0000
from: Brian Piotrowski <bpiotrowski@xxxxxxxxxxxxxxx>
subject: QRCODE invalid parameter in BARCODE keyword

Good morning, all.

We're experiencing an issue working with QRCODES, and I'm wondering if I
can get any advice? When my programmers attempt to use the QRCODE
parameter in PDM for the BARCODE keyword, the field is highlighted as if
it's not valid. If they prompt on it, the QRCODE does not show up a valid
option. Are we missing something here? We're running 7.3 with the latest
PTFs, so I would have assumed this is built in to the OS? Or do I need to
add an additional library or something else?

Thanks.

Brian Piotrowski
Manager, I.S.



Please consider the environment before printing this email.
CONFIDENTIALITY NOTICE
This e-mail message and any attached files are confidential and are
intended solely for the use of the addressee(s) named above. This
communication may contain material protected by attorney-client, work
product, or other privileges. If you are not the intended recipient or
person responsible for delivering this confidential communication to the
intended recipient, you have received this communication in error, and any
review, use, dissemination, forwarding, printing, copying, or other
distribution of this e-mail message and any attached files is strictly
prohibited. If you have received this confidential communication in error,
please notify the sender immediately by reply e-mail message and
permanently delete the original message.


------------------------------

message: 6
date: Fri, 30 Apr 2021 13:46:18 +0200
from: "LOGIC IT: Karl FRITZ" <k.fritz@xxxxxxxx>
subject: AW: QRCODE invalid parameter in BARCODE keyword

Look at this running example:

A R QRIMAGE AFPRSC(&QRI_FILE *JFIF +
A &QRI_DOWN &QRI_ACROSS +
A (*PATH &QRI_PATH) +
A (*MAPOPT *SL) +
A (*SIZE &QRI_WIDTH +
A &QRI_HEIGHT))

A QRI_WIDTH 5S 3P
A QRI_HEIGHT 5S 3P
A QRI_DOWN 5S 3P
A QRI_ACROSS 5S 3P
A QRI_FILE 125A P

Instead fields, you can indicate directly the coordinates.

Hope it helps.
K.

-----Urspr?ngliche Nachricht-----
Von: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxxxxxxxx] Im Auftrag von
Brian Piotrowski
Gesendet: Freitag, 30. April 2021 13:35
An: rpg400-l@xxxxxxxxxxxxxxxxxx
Betreff: QRCODE invalid parameter in BARCODE keyword

Good morning, all.

We're experiencing an issue working with QRCODES, and I'm wondering if I
can
get any advice? When my programmers attempt to use the QRCODE parameter in
PDM for the BARCODE keyword, the field is highlighted as if it's not valid.
If they prompt on it, the QRCODE does not show up a valid option. Are we
missing something here? We're running 7.3 with the latest PTFs, so I would
have assumed this is built in to the OS? Or do I need to add an additional
library or something else?

Thanks.

Brian Piotrowski
Manager, I.S.



Please consider the environment before printing this email.
CONFIDENTIALITY NOTICE
This e-mail message and any attached files are confidential and are
intended
solely for the use of the addressee(s) named above. This communication may
contain material protected by attorney-client, work product, or other
privileges. If you are not the intended recipient or person responsible for
delivering this confidential communication to the intended recipient, you
have received this communication in error, and any review, use,
dissemination, forwarding, printing, copying, or other distribution of this
e-mail message and any attached files is strictly prohibited. If you have
received this confidential communication in error, please notify the sender
immediately by reply e-mail message and permanently delete the original
message.
--
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@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link:
https://amazon.midrange.com



------------------------------

Subject: Digest Footer

--
This is the RPG programming on IBM i (RPG400-L) digest 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 http://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com


------------------------------

End of RPG400-L Digest, Vol 20, Issue 173
*****************************************



As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.