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



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.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.