issue on CLEAR.FILE

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
karthi_gana
Premium Member
Premium Member
Posts: 729
Joined: Tue Apr 28, 2009 10:49 pm

issue on CLEAR.FILE

Post by karthi_gana »

All,

I just tried to clear the log by using CLEAR.FILE command as below.

. ./dsenv

bin/uvsh

logto <my project>

LIST DS_JOBS Change_Capture_Test

got the job id


CLEAR.FILE RT_LOG<above jobid>

>clear.file RT_LOG2451
CLEAR.FILE attempt on read-only file.
** CLEAR.FILE processing aborted. **

it seems like RT_LOG2451 file doesn't have the write permission. am i correct? if yes, how to apply chmod command for this file?
Karthik
karthi_gana
Premium Member
Premium Member
Posts: 729
Joined: Tue Apr 28, 2009 10:49 pm

Re: issue on CLEAR.FILE

Post by karthi_gana »

what is the exact difference between RT_LOG and RT_STATUS table?
Karthik
karthi_gana
Premium Member
Premium Member
Posts: 729
Joined: Tue Apr 28, 2009 10:49 pm

Re: issue on CLEAR.FILE

Post by karthi_gana »

I just tried this one too.

>LOGTO UV
>CLEAR.FILE RT_LOG2451
Unable to clear file RT_LOG2451.
File name = Change_Capture_Test
Unable to clear file Filter_Stage.
File name =
>
Karthik
arvind_ds
Participant
Posts: 428
Joined: Thu Aug 16, 2007 11:38 pm
Location: Manali

Post by arvind_ds »

use datastage administrator tool and then command option over there to clear the desired file.
Arvind
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Re: issue on CLEAR.FILE

Post by chulett »

karthi_gana wrote:it seems like RT_LOG2451 file doesn't have the write permission. am i correct?
Yes, for whatever user you are using that is correct. Use the proper user, the one that does have the permissions it needs.

As to the "this one too" error, you don't do any log clearing while logged into the UV project.... because the logs are not in the UV account; they are specific to project accounts. :wink:
Last edited by chulett on Wed Mar 21, 2012 4:19 pm, edited 1 time in total.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

... because the logs are not in the UV account; they are specific to project accounts.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Post by qt_ky »

Try your original commands after you telnet and login as dsadm or an equivalent user.
Choose a job you love, and you will never have to work a day in your life. - Confucius
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Re: issue on CLEAR.FILE

Post by ray.wurlod »

karthi_gana wrote:how to apply chmod command for this file?
In the usual way, with the -R option. But, if you don't have write permission, what chance is there that you'll have sufficient permission to execute a chmod command?!!
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
karthi_gana
Premium Member
Premium Member
Posts: 729
Joined: Tue Apr 28, 2009 10:49 pm

Re: issue on CLEAR.FILE

Post by karthi_gana »

$ chmod 777 -R RT_LOG2451
chmod: -R: not found [No such file or directory]
chmod: RT_LOG2451: cannot change mode [Operation not permitted]

It seems like i don't have the access to execute CHMOD command.
Karthik
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Sorry but don't you have people with UNIX skills where you work you can talk to? This really isn't a "teach you UNIX" forum, I'm afraid.

You have to own a file in order to be able to chmod it.
-craig

"You can never have too many knives" -- Logan Nine Fingers
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Post by qt_ky »

Be careful since you're not familiar with the chmod command, especially with the -R option! :!:
Choose a job you love, and you will never have to work a day in your life. - Confucius
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You're not even familiar with the syntax of chmod command. Find someone who has knowledge and permission.

Note: the better solution is to be granted membership of the correct group.

Code: Select all

chmod 777
should not be used as a universal panacea. They won't allow that in production.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply