Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Return code 127 for gzip command

Former Member
0 Likes
3,119

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

1 ACCEPTED SOLUTION
Read only

Clemenss
Active Contributor
0 Likes
1,833

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

3 REPLIES 3
Read only

Former Member
0 Likes
1,833

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

Read only

0 Likes
1,833

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

Read only

Clemenss
Active Contributor
0 Likes
1,834

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