Skip to Content
0
Former Member
Nov 21, 2011 at 01:29 PM

Rename a file in application server

103 Views

Hi guys,

I have the following problem.

I need to rename file on application server once user download them in his own pc.

Till now I used the following instructions:

CONCATENATE 'mv /home/pcuser/permanent/'dwn_file-name

' /home/pcuser/permanent/''backup_'dwn_file-name INTO unixcom.

REFRESH tabl.

CALL 'SYSTEM' ID 'COMMAND' FIELD unixcom

ID 'TAB' FIELD tabl[].

The problem is that some users does not have the S_DEVELOP authorization object and once they run the pgm it crashes!

Are there any other solutions that won't involve authorization objects?

Thanks for your answers,

Francesco

Edited by: Francesco Macaluso on Nov 21, 2011 2:30 PM