hi all,
i am trying to use RPG (free format, of course) to rename a file on the IFS.
i build the command like this:
Clear Cmd;
Cmd = 'Rnm Obj(iseries/dir1/dir2/+
dir4/dir5/images/uploaded/' + %Trim(Image) +
') +
NewObj(' + %Trim(%Char(New_Num)) + %Trim(')');
and i get this result:
Rnm Obj(iseries/dir1/dir2/dir3/dir4/dir5/images/uploaded/114497.jpg) NewObj(250)
then i call it with qcmdexec, but it don't work. i've already started PCO but i get the following error:
Characters in qualifier beginning '114497.JPG' not valid.
Error found on *N command.
i am not changing the file type, just the name of the file.
what am i missing?
thanks in advance.
-The Sergeant
i am trying to use RPG (free format, of course) to rename a file on the IFS.
i build the command like this:
Clear Cmd;
Cmd = 'Rnm Obj(iseries/dir1/dir2/+
dir4/dir5/images/uploaded/' + %Trim(Image) +
') +
NewObj(' + %Trim(%Char(New_Num)) + %Trim(')');
and i get this result:
Rnm Obj(iseries/dir1/dir2/dir3/dir4/dir5/images/uploaded/114497.jpg) NewObj(250)
then i call it with qcmdexec, but it don't work. i've already started PCO but i get the following error:
Characters in qualifier beginning '114497.JPG' not valid.
Error found on *N command.
i am not changing the file type, just the name of the file.
what am i missing?
thanks in advance.
-The Sergeant
Comment