jmd0252
Programmer
- May 15, 2003
- 667
DCL VAR(&DIVN) TYPE(*CHAR) LEN(3)
DCL VAR(&TYPE) TYPE(*CHAR) LEN(1)
SNDUSRMSG MSG('ENTER DIVISION NUMBER ') +
TOMSGQ(*) MSGTYPE(*INQ) MSGRPY(&DIVN)
SNDUSRMSG MSG('ENTER P FOR PLANT REPORT - H FOR HAULER')
TOMSGQ(*) MSGTYPE(*INQ) MSGRPY(&TYPE)
CHGDTAARA DTAARA(*LDA (1 3)) VALUE(&DIVN)
CHGDTAARA DTAARA(*LDA (4 1)) VALUE(&TYPE)
OVRDBF FILE(TE604) TOFILE(EXLIB/TE604) SHARE(*YES)
OPNQRYF FILE((TE604)) OPTION(*INP) +
QRYSLT('DIVN04 *EQ "*LDA(1 3)" ') +
KEYFLD((DIVN04) (JOB#04) (CUST04) (DATE04)) +
OPTIMIZE(*MINWAIT)
ok here is the cl code,,,, I want the user to be able to enter a division number 3 long,, and have the opnqryf work so that only those that division number is sorted,,, this is with the LDA,, I have also had the variable in quotes,, and I get the same thing,,, of no records are selected,,, yes there are,,, I can do a wrkqry,,, look at the file, and see entries for that divison.. so how dead is my brain on a friday afternnon,, before a 3 day holiday??
DCL VAR(&TYPE) TYPE(*CHAR) LEN(1)
SNDUSRMSG MSG('ENTER DIVISION NUMBER ') +
TOMSGQ(*) MSGTYPE(*INQ) MSGRPY(&DIVN)
SNDUSRMSG MSG('ENTER P FOR PLANT REPORT - H FOR HAULER')
TOMSGQ(*) MSGTYPE(*INQ) MSGRPY(&TYPE)
CHGDTAARA DTAARA(*LDA (1 3)) VALUE(&DIVN)
CHGDTAARA DTAARA(*LDA (4 1)) VALUE(&TYPE)
OVRDBF FILE(TE604) TOFILE(EXLIB/TE604) SHARE(*YES)
OPNQRYF FILE((TE604)) OPTION(*INP) +
QRYSLT('DIVN04 *EQ "*LDA(1 3)" ') +
KEYFLD((DIVN04) (JOB#04) (CUST04) (DATE04)) +
OPTIMIZE(*MINWAIT)
ok here is the cl code,,,, I want the user to be able to enter a division number 3 long,, and have the opnqryf work so that only those that division number is sorted,,, this is with the LDA,, I have also had the variable in quotes,, and I get the same thing,,, of no records are selected,,, yes there are,,, I can do a wrkqry,,, look at the file, and see entries for that divison.. so how dead is my brain on a friday afternnon,, before a 3 day holiday??