The help I was talking about was in Run SQL Scripts from ACS, but the RUNSQLSTM command got it added in 6.1. This is the closest to an announcement that I could find. https://www.mcpressonline.com/programming-other/general/techtip-runsqlstm-is-bigger-and-better-in-v6r1

On Tue, 2020-08-11 at 09:59 -0400, a4g atl wrote:

@Alan, happy I could pass on something to the group.

Darryl.


On Tue, Aug 11, 2020 at 9:52 AM Alan Shore via MIDRANGE-L <

<mailto:midrange-l@xxxxxxxxxxxxxxxxxx>

midrange-l@xxxxxxxxxxxxxxxxxx

wrote:


Thanks Kevin

I definitely did not know about that

I cannot tell you how many times I have created an SQL script, wishing

there was a way to call CL from within the SQL script

I learnt something new today.

Todays a good day

But then its very rare I DON’T learn something new from this e-mail group


Alan Shore

E-mail :

<mailto:ASHORE@xxxxxxxx>

ASHORE@xxxxxxxx

<mailto:

<mailto:ASHORE@xxxxxxxx>

ASHORE@xxxxxxxx



Phone [O] : (631) 200-5019

Phone [C] : (631) 880-8640

‘If you're going through hell, keep going.’

Winston Churchill


From: Kevin Bucknum [mailto:

<mailto:Kevin@xxxxxxxxxxxxxxxxxxx>

Kevin@xxxxxxxxxxxxxxxxxxx

]

Sent: Tuesday, August 11, 2020 9:46 AM

To:

<mailto:midrange-l@xxxxxxxxxxxxxxxxxx>

midrange-l@xxxxxxxxxxxxxxxxxx


Cc: Alan Shore <

<mailto:ashore@xxxxxxxx>

ashore@xxxxxxxx



Subject: Re: [EXTERNAL] what would the correct option be to use DSPJRN


It's been there for as long as I can remember. Not much documentation, but

there is not much to it. If you click on Help - Help Contents, it has this

blurb.


Control Language (CL) commands can be executed by placing CL: at the

beginning of a statement. You can use any CL command that can be submitted

from a batch job.

Example: CL:ADDRPYLE SEQNBR(3333) MSGID(CPA32B2) RPY(I);



On Tue, 2020-08-11 at 13:34 +0000, Alan Shore via MIDRANGE-L wrote:


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 :

<mailto:

<mailto:ASHORE@xxxxxxxx>

ASHORE@xxxxxxxx




<mailto:ASHORE@xxxxxxxx>

ASHORE@xxxxxxxx

<mailto:

<mailto:ASHORE@xxxxxxxx>

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:

<mailto:

<mailto:midrange-l-bounces@xxxxxxxxxxxxxxxxxx>

midrange-l-bounces@xxxxxxxxxxxxxxxxxx




<mailto:midrange-l-bounces@xxxxxxxxxxxxxxxxxx>

midrange-l-bounces@xxxxxxxxxxxxxxxxxx

<mailto:

<mailto:midrange-l-bounces@xxxxxxxxxxxxxxxxxx>

midrange-l-bounces@xxxxxxxxxxxxxxxxxx





] On Behalf Of a4g atl


Sent: Tuesday, August 11, 2020 9:29 AM


To:

<mailto:

<mailto:midrange-l@xxxxxxxxxxxxxxxxxx>

midrange-l@xxxxxxxxxxxxxxxxxx




<mailto:midrange-l@xxxxxxxxxxxxxxxxxx>

midrange-l@xxxxxxxxxxxxxxxxxx

<mailto:

<mailto:midrange-l@xxxxxxxxxxxxxxxxxx>

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:

<mailto:

<mailto:MIDRANGE-L@xxxxxxxxxxxxxxxxxx>

MIDRANGE-L@xxxxxxxxxxxxxxxxxx




<mailto:MIDRANGE-L@xxxxxxxxxxxxxxxxxx>

MIDRANGE-L@xxxxxxxxxxxxxxxxxx

<mailto:

<mailto:MIDRANGE-L@xxxxxxxxxxxxxxxxxx>

MIDRANGE-L@xxxxxxxxxxxxxxxxxx





To subscribe, unsubscribe, or change list options,


visit:

<

<https://lists.midrange.com/mailman/listinfo/midrange-l>

https://lists.midrange.com/mailman/listinfo/midrange-l




<https://lists.midrange.com/mailman/listinfo/midrange-l>

https://lists.midrange.com/mailman/listinfo/midrange-l






or email:

<mailto:

<mailto:MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx>

MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx




<mailto:MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx>

MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx

<mailto:

<mailto:MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx>

MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx







Before posting, please take a moment to review the archives at

<

<https://archive.midrange.com/midrange-l>

https://archive.midrange.com/midrange-l




<https://archive.midrange.com/midrange-l>

https://archive.midrange.com/midrange-l




.




Please contact

<mailto:

<mailto:support@xxxxxxxxxxxxxxxxxxxx>

support@xxxxxxxxxxxxxxxxxxxx




<mailto:support@xxxxxxxxxxxxxxxxxxxx>

support@xxxxxxxxxxxxxxxxxxxx

<mailto:

<mailto:support@xxxxxxxxxxxxxxxxxxxx>

support@xxxxxxxxxxxxxxxxxxxx





for any subscription related questions.




Help support midrange.com by shopping at amazon.com with our affiliate

link:

<

<https://amazon.midrange.com>

https://amazon.midrange.com




<https://amazon.midrange.com>

https://amazon.midrange.com









[

<https://www.medtronsoftware.com/img/MedtronMinilogo.bmp>

https://www.medtronsoftware.com/img/MedtronMinilogo.bmp

] Kevin Bucknum

Senior Programmer Analyst

MEDDATA / MEDTRON

120 Innwood Drive

Covington LA 70433

Local: 985-893-2550

Toll Free: 877-893-2550



<https://www.medtronsoftware.com>

https://www.medtronsoftware.com




CONFIDENTIALITY NOTICE



This document and any accompanying this email transmission contain

confidential information, belonging to the sender that is legally

privileged. This information is intended only for the use of the

individual or entity named above. The authorized recipient of this

information is prohibited from disclosing this information to any other

party and is required to destroy the information after its stated need has

been fulfilled. If you are not the intended recipient, or the employee of

agent responsible to deliver it to the intended recipient, you are hereby

notified that any disclosure, copying, distribution or action taken in

reliance on the contents of these documents is STRICTLY PROHIBITED. If you

have received this email in error, please notify the sender immediately to

arrange for return or destruction of these documents.

--

This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list

To post a message email:

<mailto:MIDRANGE-L@xxxxxxxxxxxxxxxxxx>

MIDRANGE-L@xxxxxxxxxxxxxxxxxx


To subscribe, unsubscribe, or change list options,

visit:

<https://lists.midrange.com/mailman/listinfo/midrange-l>

https://lists.midrange.com/mailman/listinfo/midrange-l


or email:

<mailto:MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx>

MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx


Before posting, please take a moment to review the archives

at

<https://archive.midrange.com/midrange-l>

https://archive.midrange.com/midrange-l

.


Please contact

<mailto:support@xxxxxxxxxxxxxxxxxxxx>

support@xxxxxxxxxxxxxxxxxxxx

for any subscription related

questions.


Help support midrange.com by shopping at amazon.com with our affiliate

link:

<https://amazon.midrange.com>

https://amazon.midrange.com





[https://www.medtronsoftware.com/img/MedtronMinilogo.bmp] Kevin Bucknum
Senior Programmer Analyst
MEDDATA / MEDTRON
120 Innwood Drive
Covington LA 70433
Local: 985-893-2550
Toll Free: 877-893-2550
https://www.medtronsoftware.com



CONFIDENTIALITY NOTICE

This document and any accompanying this email transmission contain confidential information, belonging to the sender that is legally privileged. This information is intended only for the use of the individual or entity named above. The authorized recipient of this information is prohibited from disclosing this information to any other party and is required to destroy the information after its stated need has been fulfilled. If you are not the intended recipient, or the employee of agent responsible to deliver it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or action taken in reliance on the contents of these documents is STRICTLY PROHIBITED. If you have received this email in error, please notify the sender immediately to arrange for return or destruction of these documents.

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.