I suspect your ENTDTALEN(*CALC) is causing you the issue. I can't say what the alternate value should be. We specify a really large # in our script.
-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of a4g atl
Sent: Tuesday, August 11, 2020 9:29 AM
To: midrange-l@xxxxxxxxxxxxxxxxxx
Subject: what would the correct option be to use DSPJRN
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
I have had a procedure that I have used for the past 10 years plus. It is no longer working as before. Essentially I have to retrieve data from the journals to see how data is changing in the file.
It seems IBM changed something in the output of the DSPJRN command and my procedure now fails. I have tried several options, unsuccessfully.
The failure is a CPF5035 and CPF2973 = Data truncated to 820 characters.
The truncation is my problem.
Can anyone assist with how to use the command?
Here is the SQL code. I also tested it at the native command prompt.
---------------
drop table QTEMP.JRN_WORK1;
drop table QTEMP.JRN_WORK2;
;
CL:DSPJRN JRN(#LCNSOXJRN/LCNSOXJRN) FILE((OEFILES/OEHDRP)) FROMTIME(081120
000000) OUTPUT(*OUTFILE) OUTFILFMT(*TYPE3) OUTFILE(QTEMP/JRN_WORK1)
ENTDTALEN(*CALC) NULLINDLEN(*CALC)
;
-- Select JOESD from QTEMP.JRN_WORK1;
create table QTEMP.JRN_WORK2 as
(select a1.joentl, a1.joseqn, a1.jocode, a1.joentt, a1.jotstp, a1.jojob, a1.jouser, a1.jonbr, a1.jopgm, a1.joobj, a1.jolib, a1.jombr, a1.joctrr, a1.joflag, a1.joccid, a1.jouspf, a1.josynm, a1.joincdat, a1.jominesd, a1.jores, a1.jonvi,
a2.*
from QTEMP.JRN_WORK1 a1 , OEFILES.OEHDRP a2 )
with NO data;
-- Select * from QTEMP.JRN_WORK2;
CL: cpyf QTEMP/JRN_WORK1 QTEMP/JRN_WORK2 mbropt(*replace) fmtopt(*NOCHK) ;
;
---------------
TIA
Darryl Freinkel.
--
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://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/midrange-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
As an Amazon Associate we earn from qualifying purchases.