|
>START: PGM PARM(&TDATE) > >DCL VAR(&TDATE) TYPE(*CHAR) LEN(6) >DCL VAR(&TRN_DATE) TYPE(*CHAR) LEN(7) > >CVTDAT DATE(&TDATE) TOVAR(&TRN_DATE) FROMFMT(*MDY) + > TOFMT(*CYMD) TOSEP(*NONE) > >FI041Q1: STRQMQRY QMQRY(FI041Q1) ALWQRYDFN(*ONLY) + > SETVAR((TRN_DATE &TRN_DATE)) >FI041Q2: STRQMQRY QMQRY(FI041Q2) ALWQRYDFN(*ONLY) + > SETVAR((TRN_DATE &TRN_DATE)) >FI041Q3: STRQMQRY QMQRY(FI041Q3) ALWQRYDFN(*ONLY) + > SETVAR((TRN_DATE &TRN_DATE)) > >FI041Q4: RUNQRY QRY(FI041Q4) > >END: ENDPGM > >When FI041Q2 runs, it is expecting to have file >FI041Q2F as the input file but is not there. OK, if it's not separate QTEMPs, then perhaps it is the input parameter OR the submitted job's library list. I'm thinking that the first query runs but has no output. Are you saying that if you go to a command line and CALL xxxCL '082102' you get results, but if you submit it sbmjob cmd(call xxxCL '082102') it does not work? Try a DMPCLPGM right after the CVTDAT to see the values of the input parameter and it's converted equivalent. --buck
As an Amazon Associate we earn from qualifying purchases.
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.