HolderAndrew
Well Known Member
Hello All,
I think this is a nice one for the iseries expert (not me!)
We are trying to copy data from an E1 (or Xe) table to the IFS via the following command which is submitted from ER inside a UBE:
CPYTOIMPF FROMFILE(Libname/File1) TOSTMF('/Folder1/Filenam') MBROPT(*ADD) STMFCODPAG(1257) RCDDLM(*LF) STRDLM(*NONE)
If the UBE is running locally on dev client then command works ok. If the UBE runs on the server (iseries) then the command does not work. Unfortunately in the debug log I cannot see any details of why this is not working.
If we issue a different command such as:
CPYF FROMFILE(Libname/File1) TOFILE(Libname2/Filenam) TOMBR(Filenam) MBROPT(*ADD) CRTFILE(*YES)
then this works ok everywhere (local or on server) The problem with the CPYTOIMPF command exists both within our E1 8.11 TR 8.95_O1 and on our OneWorld Xe SP23 systems both running V5R3 on iseries, so I guess that the problem is OS/400 related and not E1/Xe?
[Btw-The commands are issued from a custom BSFN which is mapped to always run serverside on OCM. We only get back a 'success' or 'error' message if the command works or not.]
So, it seems that the CPYTOIMPF has some restrictions when running on the server? The userid in Xe on serverside is JDE (or ONEWORLD) and I have checked that the authorites on the 'Fromfile' are ok (ie. *ALL). I have also checked that the permissions on the IFS target are ok for all the userids that I can possibly think of!
We have reviewed APARS and associated PTFs concerning the CPYTOIMPF command as recommended on IBM site and everything looks ok.
Here is a description of the CPYTOIMPF:
Command . . . . . . . : CPYTOIMPF Library . . . . . . . : QSYS
Program to process . . . . . . :QCPEXPRT
Library . . . . . . . . . . . . . . : QSYS
State used to call program . . . . . : *SYSTEM
Validity checking program . . . . . . : *NONE
Mode(s) in which valid . . . . . . . . :*PROD *DEBUG *SERVICE
Where allowed to run . . . . . . . . . : *IMOD *BMOD *IREXX *BREXX *BPGM *IPGM *EXEC *INTERACT *BATCH
Allow limited user . . . . . . . . . . : *NO
Maximum positional parameters . . . . :3
We would be extremely grateful if somebody could offer some advice of solving this problem or perhaps offering an alternative solution.
Regards
Andrew
I think this is a nice one for the iseries expert (not me!)
We are trying to copy data from an E1 (or Xe) table to the IFS via the following command which is submitted from ER inside a UBE:
CPYTOIMPF FROMFILE(Libname/File1) TOSTMF('/Folder1/Filenam') MBROPT(*ADD) STMFCODPAG(1257) RCDDLM(*LF) STRDLM(*NONE)
If the UBE is running locally on dev client then command works ok. If the UBE runs on the server (iseries) then the command does not work. Unfortunately in the debug log I cannot see any details of why this is not working.
If we issue a different command such as:
CPYF FROMFILE(Libname/File1) TOFILE(Libname2/Filenam) TOMBR(Filenam) MBROPT(*ADD) CRTFILE(*YES)
then this works ok everywhere (local or on server) The problem with the CPYTOIMPF command exists both within our E1 8.11 TR 8.95_O1 and on our OneWorld Xe SP23 systems both running V5R3 on iseries, so I guess that the problem is OS/400 related and not E1/Xe?
[Btw-The commands are issued from a custom BSFN which is mapped to always run serverside on OCM. We only get back a 'success' or 'error' message if the command works or not.]
So, it seems that the CPYTOIMPF has some restrictions when running on the server? The userid in Xe on serverside is JDE (or ONEWORLD) and I have checked that the authorites on the 'Fromfile' are ok (ie. *ALL). I have also checked that the permissions on the IFS target are ok for all the userids that I can possibly think of!
We have reviewed APARS and associated PTFs concerning the CPYTOIMPF command as recommended on IBM site and everything looks ok.
Here is a description of the CPYTOIMPF:
Command . . . . . . . : CPYTOIMPF Library . . . . . . . : QSYS
Program to process . . . . . . :QCPEXPRT
Library . . . . . . . . . . . . . . : QSYS
State used to call program . . . . . : *SYSTEM
Validity checking program . . . . . . : *NONE
Mode(s) in which valid . . . . . . . . :*PROD *DEBUG *SERVICE
Where allowed to run . . . . . . . . . : *IMOD *BMOD *IREXX *BREXX *BPGM *IPGM *EXEC *INTERACT *BATCH
Allow limited user . . . . . . . . . . : *NO
Maximum positional parameters . . . . :3
We would be extremely grateful if somebody could offer some advice of solving this problem or perhaps offering an alternative solution.
Regards
Andrew