Not exactly sure but it might be that you have misplaced a quote(")
CHGVAR    VAR(&SELT1) VALUE('L@CTCD  *EQ " ' | |  &CTCD  | |  +
                    | | ' "  *AND  L@GMAB  *EQ  " '  ||  &GMAB   | |  ' "
+
                    *AND L@BRNO  *EQ  '  | |  &BRNO  | |  '    " *AND +
                    L@XMDT  *EQ  ' | |  &W1DATE  | | ' " ' )
Should be:
CHGVAR    VAR(&SELT1) VALUE('L@CTCD  *EQ " ' | |  &CTCD  | |  +
                    | | ' "  *AND  L@GMAB  *EQ  " '  ||  &GMAB   | |  ' "
+
                    *AND L@BRNO  *EQ  '  | |  &BRNO  | |  '     *AND +
                    "L@XMDT  *EQ  ' | |  &W1DATE  | | ' " ' )
Doug Belcher | (he|him|his)
IT Applications Specialist | White-Rodgers
Emerson Commercial & Residential Solutions | 8100 West Florissant Avenue | St. Louis, Mo | 63136 | USA
T 314 553 5872 | M 314 776 4461
Doug.Belcher@xxxxxxxxxxx
-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of techie21 IT
Sent: Wednesday, January 6, 2021 10:53 AM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: [EXTERNAL] Expression or QRYSLT parameter missing apostrophe error
Hi,
Any idea why below error is is appearing for below OPNQRYF command  in the
program:-
"Expression or QRYSLT parameter missing apostrophe"
CHGVAR    VAR(&SELT1) VALUE('L@CTCD  *EQ " ' | |  &CTCD  | |  +
                    | | ' "  *AND  L@GMAB  *EQ  " '  ||  &GMAB   | |  ' "
+
                    *AND L@BRNO  *EQ  '  | |  &BRNO  | |  '    " *AND +
                    L@XMDT  *EQ  ' | |  &W1DATE  | | ' " ' )
OPNQRYF    FILE((QTEMP/BA@IMTP))  QRYSLT(&SELT1)  +
                     KEYFLD((L@CTCD) (L@GMAB) (L@BRNO))
Thanks..
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: 
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.midrange.com_mailman_listinfo_midrange-2Dl&d=DwICAg&c=jOURTkCZzT8tVB5xPEYIm3YJGoxoTaQsQPzPKJGaWbo&r=jFFsrfJukeI3_1504_25tcj_qfI1gv7BeeMsv5LMb1M&m=0BgTLJ0yoqu9PTmdeil132gxCjMFK8bjTF2rTsmNzC0&s=il3vPwTItwk97Q_0Dh9GO87xxvibl9kbc3FHnYBCnIU&e=
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at 
https://urldefense.proofpoint.com/v2/url?u=https-3A__archive.midrange.com_midrange-2Dl&d=DwICAg&c=jOURTkCZzT8tVB5xPEYIm3YJGoxoTaQsQPzPKJGaWbo&r=jFFsrfJukeI3_1504_25tcj_qfI1gv7BeeMsv5LMb1M&m=0BgTLJ0yoqu9PTmdeil132gxCjMFK8bjTF2rTsmNzC0&s=eqVRQL2ipHEVxBgQbbEsyCHEN1pvc4HV_aOBJpv-kkw&e= .
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link: 
https://urldefense.proofpoint.com/v2/url?u=https-3A__amazon.midrange.com&d=DwICAg&c=jOURTkCZzT8tVB5xPEYIm3YJGoxoTaQsQPzPKJGaWbo&r=jFFsrfJukeI3_1504_25tcj_qfI1gv7BeeMsv5LMb1M&m=0BgTLJ0yoqu9PTmdeil132gxCjMFK8bjTF2rTsmNzC0&s=NRxU0ogAfpkC3iPgOZSqX9z1srbp1xsTO5A72oTdvgg&e= 
As an Amazon Associate we earn from qualifying purchases.