Ansicht
Dokumentation
00254 - Problem using call 'SYSTEM' function to copy I FS files
BAL Application Log Documentation Fill RESBD Structure from EBP Component StructureThis documentation is copyright by SAP AG.

Problem using call 'SYSTEM' function to copy I FS files
Hi Klaus,hi Russ,
I changed your progrm a little bit so that you can see the result afterwards
on the screen (positive or negative). So I was able to detect the problem of
Russ a lot easier:
* Testprogram that can execute AS/400 commands.
* Author: 981028 - Klaus Lindegaard RW-DK
*
* For result check as400 joblog under job(AS4DIREXE) user(SAPxx)
* Idea of Jim Doll, Perrigo:
* (in order to solve really strange problems!)
* old ABAP: call RPGPGM
* new ABAP: call CLPGM
* CL:
* CLPGM
* - CHGJOB generate joblog
* - CHGJOB log CL
* - SNDMSG QSECOFR "Running test job..."
* - DLYJOB or SNDMSG *INQ
* - CALL RPGPGM
*
report zcall_system2.
* Standard-Parameter for this pgm
parameters:
as4cmd(200) default 'CPY OBJ(''/tmp/allsys'') TOOBJ(''/tmp/aa1'')'.
*
data: begin of msg occurs 0,
field(199) type c,
end of msg.
data: wa_msg like line of msg.
* Call of the SAP-API
call 'SYSTEM' id 'COMMAND' field as4cmd
id 'TAB' field msg-*sys*.
* Write Output to the screen
loop at msg into wa_msg.
write: / wa_msg.
endloop.
Regards
Volker Gueldenpfennig
Durban Tours - Südafrika Safari
ROGBILLS - Synchronize billing plans ROGBILLS - Synchronize billing plans
This documentation is copyright by SAP AG.
Length: 1617 Date: 20231208 Time: 171704 sap01-206 ( 2 ms )