cancel
Showing results for 
Search instead for 
Did you mean: 

SYSCMD error when ftping from a clp program

Former Member
0 Kudos

Hi Guys

I am having an issue on my production R3 system ie. system EPP.

I am trying to run an abap program called zae00001.

This program calls a clp program on the as400 called also zftpdata

The program zftpdata - fetches the files and then call a clp program zae000001

The main objective of this program is to ftp files in andout and place them on th IFS

system for availablity.

This program does not want to work. If i call the program(ZAE00001) from the as400 Operating system

then it works.

I have outputed the the completed steps and error message to a file called ftpoutpf in

library qgpl and member zae00001.

Output as follows:

***********Beginning of data*************

Output redirected to a file.

Input read from specified override file.

Connecting to host ZAFTPSRV at address 160.122.231.85 using port 21.

220 Microsoft FTP Service

Enter login ID (epp00):

331 Password required for FTP010.

230 User FTP010 logged in.

Windows_NT

Enter an FTP subcommand.

> cd ORDERS/EPD_ORDER_IN

250 CWD command successful.

Enter an FTP subcommand.

> lcd femo_ord

Local working directory is FEMO_ORD

Enter an FTP subcommand.

> ascii

200 Type set to A.

Enter an FTP subcommand.

> mget *.xml

227 Entering Passive Mode (160,122,231,85,19,141).

125 Data connection already open; Transfer starting.

226 Transfer complete.

Enter an FTP subcommand.

> mdel *.xml

227 Entering Passive Mode (160,122,231,85,19,142).

125 Data connection already open; Transfer starting.

226 Transfer complete.

Enter an FTP subcommand.

> lcd qsys

Local working directory is QSYS

Enter an FTP subcommand.

> SYSCMD CALL PGM(QGPL/ZAE00001)

Error occurred while attempting the CL command.

Error message ID = CPF0001.

Error found on CALL command.

Enter an FTP subcommand.

Enter an FTP subcommand.

> quit

221

***********End of Data*******************

I think this is an authorization issue, but I am not sure where to look as it does not give me more info.

I have done an edtobjaut on the clp programs zftpdata and zae00001 in library qgpl,and allusers ie. epp00 and public has *all rights but still it does not want to work.

APPRECIATE ANY hELP TO DEBUG THIS FROM AN OS POINT OF VIEW AS YOU CAN SEE THERE ERROR CODE IS CPF0000

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Guys

The issue is with the profile (epp00). You need to give command line access i.e

give it security officer rights and everything works

Thanks

Morgs

0 Kudos

Hi Morga,

I tried the following within an interactive FTP session:

> syscmd call qcmx                               
  Error occurred while attempting the CL command.
  Error message ID = CPF0001.                    
  Error found on CALL command.  

After leaving the session I could see the following in the joblog:

3 > ftp as0018                              
    Program QCMX in library *LIBL not found.

Therfore, I suggest to look up spoolfiles or joblog of the respective jobs (work process?)

HTH,

Thomas