11-06-2008 9:30 AM
Hello All,
Im trying to ZIP a file present in the application server using the following command.
the file is present in /user and file name is testfile.dat
DATA: g_f_unixcom LIKE rlgrap-filename.
DATA: BEGIN OF g_t_tabl OCCURS 500,
line(400),
END OF g_t_tabl.
REFRESH g_t_tabl.
g_f_unixcom = 'gzip /usr/testfile.dat /usr/testfile.zip'.
CALL 'SYSTEM' ID 'COMMAND' FIELD g_f_unixcom
ID 'TAB' FIELD g_t_tabl[].
But im unable to get the zip file in the application server.
Please suggest me whether Im giving correct command or not.
Im using Version 4.6B
Good answers will be appreciated.
Thanks in advance.
Best Regards,
Sasidhar Reddy Matli.
11-06-2008 9:36 AM
Hi
Answer is pure assumption
If your OS is AIX the command is 'compress'
If your OS is Linux command is 'gzip', 'compress', 'b2zip'
Regards
Madhan D