|
|
|
/* COPYRIGHT JÜRGEN REULE 2010-2023 */ |
|
|
|
|
|
|
|
|
PGM |
PARM(&IMAGEX &FORMAT &SUBMIT) |
|
|
|
|
|
|
|
|
DCL |
VAR(&IMAGE) TYPE(*CHAR) LEN(5000) |
|
|
|
DCL |
VAR(&IMAGEX) TYPE(*CHAR) LEN(5000) |
|
|
|
DCL |
VAR(&PREVIEW) TYPE(*CHAR) LEN(5000) |
|
|
|
DCL |
VAR(&CLASSPATH) TYPE(*CHAR) LEN(5000) |
|
|
|
DCL |
VAR(&FORMAT) TYPE(*CHAR) LEN(4) |
|
|
|
DCL |
VAR(&WIDTH) TYPE(*CHAR) LEN(10) |
|
|
|
DCL |
VAR(&HEIGHT) TYPE(*CHAR) LEN(10) |
|
|
|
DCL |
VAR(&SUBMIT) TYPE(*CHAR) LEN(1) |
|
|
|
DCL |
VAR(&USER) TYPE(*CHAR) LEN(10) |
|
|
|
|
|
|
|
|
MONMSG |
MSGID(CPF0000) |
|
|
|
|
|
|
|
|
IF |
COND(&SUBMIT *EQ '0') THEN(DO) |
|
|
|
RTVJOBA |
USER(&USER) |
|
|
|
|
|
|
|
|
IF |
COND(&IMAGEX *NE ' ' + |
|
|
|
|
*AND &FORMAT *NE ' ') THEN(DO) |
|
|
|
|
|
|
|
|
CHGVAR |
VAR(&IMAGE) + |
|
|
|
|
VALUE('originale$/' *TCAT &IMAGEX) |
|
|
|
|
|
|
|
|
CHGVAR |
VAR(&PREVIEW) + |
|
|
|
|
VALUE('www/' *TCAT &IMAGEX) |
|
|
|
|
|
|
|
|
CPY |
OBJ(&PREVIEW) TOOBJ(&IMAGE) REPLACE(*NO) |
|
|
|
MONMSG |
MSGID(CPF0000) EXEC(GOTO CMDLBL(ENDPGM)) |
|
|
|
|
|
|
|
|
CHGVAR |
VAR(&WIDTH) VALUE('1024') |
|
|
|
CHGVAR |
VAR(&HEIGHT) VALUE(&WIDTH) |
|
|
|
CHGVAR |
VAR(&CLASSPATH) VALUE('java') |
|
|
|
|
|
|
|
|
IF |
COND(&IMAGE *NE ' ' + |
|
|
|
|
*AND &PREVIEW *NE ' ' + |
|
|
|
|
*AND &FORMAT *NE ' ') THEN(DO) |
|
|
|
|
|
|
|
|
JAVA |
CLASS('Minibild') + |
|
|
|
|
PARM(&IMAGE &PREVIEW &FORMAT + |
|
|
|
|
&WIDTH &HEIGHT) + |
|
|
|
|
CLASSPATH(&CLASSPATH) + |
|
|
|
|
PROP((java.awt.headless true)) |
|
|
|
|
|
|
|
|
MONMSG |
MSGID(JVA0000) EXEC(DO) |
|
|
|
SNDPGMMSG |
MSGID(CPF9897) MSGF(QCPFMSG) MSGDTA(' ' + |
|
|
|
|
*CAT &IMAGE *BCAT &WIDTH + |
|
|
|
|
*BCAT &HEIGHT + |
|
|
|
|
*BCAT &FORMAT + |
|
|
|
|
*BCAT &PREVIEW) + |
|
|
|
|
TOUSR(&USER) |
|
|
|
ENDDO |
|
|
|
|
ENDDO |
|
|
|
|
ENDDO |
|
|
|
|
ENDDO |
|
|
|
|
|
|
|
|
|
IF |
COND(&SUBMIT *EQ '1') THEN(DO) |
|
|
|
SBMJOB |
CMD(IMAGEX IMAGE(&IMAGEX) + |
|
|
|
|
FORMAT(&FORMAT) + |
|
|
|
|
SUBMIT(*NO)) + |
|
|
|
|
JOB(IMAGEX) + |
|
|
|
|
LOG(4 0 *NOLIST) + |
|
|
|
|
LOGCLPGM(*NO) |
|
|
|
ENDDO |
|
|
|
ENDPGM: |
ENDPGM |
|
|