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



Hi Darryl
Unfortunately - I don't have an answer to your predicament
HOWEVER
Looking at your SQL, I saw the following 2 commands
CL:DSPJRN JRN(#LCNSOXJRN/LCNSOXJRN) FILE((OEFILES/OEHDRP)) FROMTIME(081120
000000) OUTPUT(*OUTFILE) OUTFILFMT(*TYPE3) OUTFILE(QTEMP/JRN_WORK1)
ENTDTALEN(*CALC) NULLINDLEN(*CALC)
;
And
CL: cpyf QTEMP/JRN_WORK1 QTEMP/JRN_WORK2 mbropt(*replace) fmtopt(*NOCHK) ;

Looks like you can run CL commands from SQL!!!!!!!!
When did this happen?
Obviously, I missed something
Is there any documentation on this?

YEESH

Alan Shore
E-mail : ASHORE@xxxxxxxx
Phone [O] : (631) 200-5019
Phone [C] : (631) 880-8640
'If you're going through hell, keep going.'
Winston Churchill

-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxxxxxxxx] On Behalf Of a4g atl
Sent: Tuesday, August 11, 2020 9:29 AM
To: midrange-l@xxxxxxxxxxxxxxxxxx
Subject: [EXTERNAL] what would the correct option be to use DSPJRN

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.

This thread ...

Follow-Ups:
Replies:

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.