• Welcome to the upgraded JDELIST forum and thank you for your patience.
    Please restrict discussions and issues regarding the new forum software to the Off Topic forum. We will be monitoring that forum for issues.
    If you have trouble logging in, please reset your password using the forgotten password form: https://www.jdelist.com/community/index.php?lost-password/
    If you are unable to successfully reset your password, please contact us: Click here!
    We hope that you enjoy the upgraded forum.
  • Introducing Dark Mode! Switch by clicking on the lightbulb icon next to Search or by clicking on Default style at the bottom left of the page!

B34A1030 move a file in AS400... what is the AS400 commend line?

[FONT=&quot]Hi .. hope an AS400 and JDE expert can help me. new in AS400 and JDE

I need to copy a file into archive directory then delete the original file
I was plan to use B4700230 but according to Doc id 636244.1, there could be huge performance issue to use BF B4700230 to copy. It recommend to use B34A1030 (Call external program ) to copy/delete or move the file.

Since I am new in AS400, what is the AS400 commend to be use in B34A1030

1) copy file from one directory to other ( e.g. copy /server/dir1/abc.txt to /server/dir2/abc_archive.txt )
2) delete the original file ( eg. delete /server/dir1/abc.txt )





VIP Member
Look into QNTC setup on your iSeries. Using it, you can access any windows server with the following path notation: /QNTC/<servername>/<folder>/.../<folder>/<filename>

QNTC services are probably already running.

One caveat: Your E1 system user accounts must have a matching account (user and password) on your windows domain.
You can create your own business function and use the jde API function jdeRename.

jdeRename((const JCHAR *) szFromLocation, (const JCHAR *) szToLocation);

The from and to location should both be fully qualified file names.