Re: Shelling out CRTLF via QCMDEXC -- question about success/failure

Rob Berendt <[email protected]> Mon, 8 Jun 2026 17:49:34 -0400
Newsgroups gmane.comp.hardware.ibm.midrange
Message-ID <CAPJ+qQM6ufe7fUZPMd5R3xPGB7yr23n8O-YjAsofkM-Na_v_5g@mail.gmail.com>
Although I would avoid DDS here is a sample using it

-- I injected an error (member does not exist)
CALL QSYS2.QCMDEXC('CRTLF FILE(ERPLXF/IIML0UI) SRCFILE(ERPLXS/QDDSSRC)')
;
SELECT *
from table(qsys2.joblog_info('*')) A
where message_id<>'SQL0443'
order by ordinal_position desc
;
select NATIVE_TYPE, S.*
from qsys2.sysfiles S
where SYSTEM_TABLE_SCHEMA='ERPLXF'
AND  SYSTEM_TABLE_NAME='IIML01';

On Mon, Jun 8, 2026 at 5:31 PM James H. H. Lampert via MIDRANGE-L <
[email protected]> wrote:

> I've got a project in which I will be using a QCMDEXC call to shell out
> a CRTLF (from a generated source member). What is the easiest way for
> the calling program to determine whether the CRTLF was successful?
>
> --
> JHHL
> --
> This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
> To post a message email: [email protected]
> To subscribe, unsubscribe, or change list options,
> visit: https://lists.midrange.com/mailman/listinfo/midrange-l
> or email: [email protected]
> Before posting, please take a moment to review the archives
> at https://archive.midrange.com/midrange-l.
>
> Please contact [email protected] for any subscription related
> questions.
>
>
-- 
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: [email protected]
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: [email protected]
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact [email protected] for any subscription related questions.