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



This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
--
[ Picked text/plain from multipart/alternative ]
Mark, Here is a sample of passing parms to a query, while not exactly like
your example you will be able to figure out what you need:

                                                         */
 PGM        PARM(&CAGE)
 DCLF       FILE(HGR0093/LMTD605PF5)
 DCL        VAR(&CAGE) TYPE(*CHAR) LEN(5)
 DCL        VAR(&Q) TYPE(*CHAR) LEN(1) VALUE('''')
 DCL        VAR(&VAR1) TYPE(*CHAR) LEN(7)
.
.
.
 CHGVAR     VAR(&VAR1) VALUE(&Q || &CAGE || &Q)
.
.
.
STRQMQRY   QMQRY(HGR0093/LMTD605QM5) OUTPUT(*OUTFILE) +
             QMFORM(*SYSDFT) +
             OUTFILE(HGR0093/LMTD605PF5) +
             OUTMBR(*FIRST *REPLACE) DATETIME(*NO) +
             PAGNBR(*NO) NAMING(*SYS) SETVAR((VAR1 &VAR1))
.
.
.
LOOP:        RCVF       RCDFMT(LMTD605PF5)
             MONMSG     MSGID(CPF0864) EXEC(GOTO CMDLBL(NODATA))

             CHGVAR     VAR(&CVT) VALUE(&DT_OE00001)
             CHGVAR     VAR(&FLD) VALUE(&CAGE_00001 || &DE_LI00001 +
                          || &CVT)

             CALL       PGM(QSNDDTAQ) PARM(&DQ &LIB &LEN &FLD)
             GOTO       CMDLBL(LOOP)

 NODATA:     ENDPGM

-----Original Message-----
From: Mark_McCarty@nexnet.navy.mil [mailto:Mark_McCarty@nexnet.navy.mil]
Sent: Monday, August 05, 2002 1:40 PM
To: midrange-l@midrange.com
Subject: RE: Send a parm to a query?



Is there a way to pass a parm(date) to the query page heading when writing
a query to a spoolfile.  We have numerous queries that need to be date
corrected each month.   I know about the &date, but is the a way to print
'start date - stop date'.   Any assistance would be greatly appreciated

MarK A McCarty
AS/400 Programmer/Developer
Navy Exchange Service Command

Thought to ponder -
"... never kick a cow chip on a hot day!"
Will Rogers





***************************defiant************************************
This email and any files transmitted with it are intended solely for
the use of the individual or agency to whom they are addressed. If
you have received this email in error please notify the Navy Exchange
Service Command e-mail administrator.

This footnote also confirms that this email message has been scanned
for the presence of computer viruses.

messaging_support_team@nexnet.navy.mil
**********************************************************************

_______________________________________________
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l
or email: MIDRANGE-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


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.