‎2009 Nov 06 9:32 AM
Dear All,
While i am trying to ZIP a flat file using below piece of code,
CONCATENATE 'gzip'
lf_unix_fnam
INTO lf_folder_z
SEPARATED BY space.
CALL 'SYSTEM' ID 'COMMAND' FIELD lf_folder_z
ID 'TAB' FIELD lt_result.
This code was working previously. But now it is returning an 127 as return code and my file is not getting zipped due to this. Any details about return code 127 would be a greate help.
Thanks in advance
Jijeesh
‎2009 Nov 07 12:12 AM
Hi,
check the authorization for the unix file/directory. Also check if GZIP is present and can be accessed, Exit status 127 can be returned by the shell if a command can not be found - which may also happen if authority X for execution is not granted.
Regards,
Clemens
‎2009 Nov 06 10:05 AM
Could you please give me more details regarding the variable values they hold...I would try out to give u solution on this.
Thanks,
Saibaba Kondani
‎2009 Nov 06 5:32 PM
Hi Sai,
CONCATENATE 'gzip'
lf_unix_fnam
INTO lf_folder_z
SEPARATED BY space.
CALL 'SYSTEM' ID 'COMMAND' FIELD lf_folder_z
ID 'TAB' FIELD lt_result.
in my lf_unix_fnam i have /transfer/data/DEV/file1 which is the path and file name. so for lf_folder_z I will be having gzip /transfer/data/DEV/file1
so after above command I am expecting file1.gz in path /transfer/data/DEV/
but i am gettting a return code 127. Could you please help.
Thanks in advance.
Jijeesh
‎2009 Nov 07 12:12 AM
Hi,
check the authorization for the unix file/directory. Also check if GZIP is present and can be accessed, Exit status 127 can be returned by the shell if a command can not be found - which may also happen if authority X for execution is not granted.
Regards,
Clemens