Ansicht
Dokumentation

00204 - Problem using call 'SYSTEM' function to copy I FS files

00204 - Problem using call 'SYSTEM' function to copy I FS files

General Material Data   General Data in Customer Master  
This documentation is copyright by SAP AG.
SAP E-Book

Problem using call 'SYSTEM' function to copy I FS files

Hi Russ,

I changed the ABAP of Klaus with a default for the WRKSYSSTS as
follows:

* Testprogram that can execute AS/400 commands.
* Author: 981028 - Klaus Lindegaard RW-DK
*
* For result check as400 joblog under job(AS4DIREXE) user(SAPxx)
*
REPORT ZCALL_SYSTEM2.
PARAMETERS:
AS4CMD(200) DEFAULT 'WRKSYSSTS'.
*
DATA: BEGIN OF MSG OCCURS 0,
FIELD-200,
AS4CMD-200,
END OF MSG.
*
CALL 'SYSTEM' ID 'COMMAND' FIELD AS4CMD
ID 'TAB' FIELD MSG-*SYS*.

Then I ran it in a 4.5B system as well. After this I found the
spoolfile QPDSPSTS as expected. So this seems to work on my system
with kernel-patch 572

Regards

Volker Gueldenpfennig

--- In SAP on System iZegroups.com, russ.cookZg... wrote:
> Hi Volker,
>
> I do not see the same error as Klaus in my job log. All I see is a
> message that QCMDEXC failed but no reason. We are on release 45B
> with a kernel patch level of 573. We are on OS400 release V4R5
with
> all the required PTFs and cum packs.
>
> Kind regards,
>
> Russ Cook
>
>
>
> --- In SAP on System iZegroups.com, "Gueldenpfennig, Volker"
> <volker.gueldenpfennigZs...> wrote:
> > Hi Klaus,
> >
> > we checked the coding with 4.6D kernel 338. There it worked fine
as
> well. In
> > this area were made a lot changes in the past. So I would please
> ask you to
> > install 338 and the latest SAPXPG patch. When it shouldn't work
by
> then,
> > please let us know.
> >
> > Regards
> >
> > Volker Gueldenpfennig
> >
> > > -----Original Message-----
> > > From: Klaus Lindegaard (RWDK) [mailto:klaus.lindegaardZr...]
> > > Sent: Mittwoch, 3. Januar 2001 08:31
> > > To: 'SAP on System iZegroups.com'; Gueldenpfennig, Volker;
> > > 'russ.cookZg...'
> > > Subject: SV: Problem using call 'SYSTEM'
> > > function to copy
> > > I FS files
> > >
> > >
> > > Hi Russ and Volker.
> > >
> > > I found an old program that I made under 3.1H and there it
> > > used to work (at
> > > least in '98) I have entered a copy of the program for you,
> > >
> > > "Funny" thing is - it does not work any more.
> > >
> > > It is possible to enter any OS400 command at the prompt from
the
> abap
> > > program.
> > >
> > > * Testprogram that can execute AS/400 commands.
> > > * Author: 981028 - Klaus Lindegaard RW-DK
> > > *
> > > * For result check as400 joblog under job(AS4DIREXE) user
(SAPxx)
> > > *
> > > REPORT ZKLI0001.
> > > PARAMETERS:
> > > AS4CMD(200) DEFAULT ' '.
> > > *
> > > DATA: BEGIN OF MSG OCCURS 0,
> > > FIELD-200,
> > > AS4CMD-200,
> > > END OF MSG.
> > > *
> > > CALL 'SYSTEM' ID 'COMMAND' FIELD AS4CMD
> > > ID 'TAB' FIELD MSG-*SYS*.
> > >
> > > In the joblog I see that the execution gets cancelled, (sorry
> > > for IBM's
> > > Danish translation of OS400)
> > >
> > > 40 01-01-03 08:06:59 QLICKOBJ QSYS 0150
> > > AS4CMDEXC
> > >
> > > Til modul . . . . . . . . . : AS4CMDEXC
> > >
> > > Til procedure . . . . . . . : main
> > >
> > > Udtryk . . . . . . . . . . : 4
> > >
> > > Meddelelse . . : Objekt XPG000325 i bibliotek R3400 er
> > > ikke fundet.
> > >
> > > Årsag . . . . . : Objektet XPG000325 i biblioteket R3400
> > > af typen *FILE
> > >
> > > findes ikke. Enten er navnet på objektet eller biblioteket
> ikke
> > > rigtigt,
> > >
> > > In short it says object not found termination see is 40 msg
> > > is CPF9801
> > >
> > > So Russ, might just have found a new error.
> > >
> > > Regards
> > > Klaus Lindegaard
> > >
> > > PS.: Don't mind the user name this has changed since then. on
> > > 4.6B it is
> > > <sid><instance> ex. DEV01
> > >
> > > > -----Oprindelig meddelelse-----
> > > > Fra: russ.cookZg...
> > > [SMTP:russ.cookZg...]
> > > > Sendt: 2. januar 2001 23:00
> > > > Til: SAP on System iZegroups.com
> > > > Emne: Problem using call 'SYSTEM'
> > > function to copy IFS
> > > > files
> > > >
> > > > Hi Group:
> > > >
> > > > I am trying to execute an AS400 command from an ABAP program
> using
> > > > the call 'System' function. The command I am trying to
execute
> is a
> > > > as400 cpy command to copy a file from one IFS directory to
> another
> > > > IFS directory. The IFS directories and the object in the IFS
> > > > directory have a primary group authorization named 'IXOS1'.
I
> have
> > > > modified the instance user id PRD02 to be a member of the
IXOS1
> > > > group. When I execute this abap program I see that an
> > > AS4RDIREXE job
> > > > is created on the AS400 and run. When I review the AS400
spool
> file
> > > > for this job I see that the call to QCMDEXC command failed
but
> it
> > > > does not list any reason. The command that is executed is:
> > > >
> > > > CALL QCMDEXC parm('cpy obj
> (''/gdsap/IXOT/PRD/upload/D0A243388.rwc'')
> > > > toobj(''/gdsap/IXOT/PRD/rwctest.txt'')' 84)
> > > >
> > > > It appears that this job is submitted under the instance user
> id
> > > > PRD02. If I sign on to the AS400 as PRD02 and execute this
> exact
> > > > command from the command line then it works. I have spent a
> great
> > > > deal of time trying to get this to work but I have not had
> > > any luck.
> > > > This program is needed for our IXOS document management
system.
> > > >
> > > > Kind regards,
> > > >
> > > > Russ Cook
> > > >
> > > >
> > > >
> > > > eGroups Sponsor
> > > > Click Here!
> > > >
> > > <http://rd.consolut.net/M=163100.1220844.2856387.2/D=egroupmail/S
> > > =1700007389:
> > > > N/A=524804/*http://www.classmates.com/index.tf?s=2629>
> > > >
> > > > To unsubscribe from this group, send an email to:
> > > > SAP on System i-unsubscribeZegroups.com
> > > >
> > > >
> > > >
> > >


Durban Tours - Südafrika Safari

Vendor Master (General Section)   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.

Length: 8750 Date: 20240424 Time: 054933     sap01-206 ( 3 ms )