File Access issue

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
satheesh_color
Participant
Posts: 182
Joined: Thu Jun 16, 2005 2:05 am

File Access issue

Post by satheesh_color »

Hi,

Today we have a strange problem while accessing a file. We have Ftp'ed a file from 3rd party system and place it into inbox folder.The we have a job to move the corresponding file into staging folder and backup the file into archive folder for future reference.

Once the Ftp job gets completed,the job tries to access the file in inbox folder to move it into staging, but failed due to the following error:

Will wait until 21:04:13 for file '/dstage/appl/inbox/Misc/rew.Flat_Fee_LocationExclusionList.csv' to be present

Timed out after 00:00:05 while checking file '/dstage/appl/inbox/Misc/rew.Flat_Fee_LocationExclusionList.csv'

When we try to check/access the file manually we too get the access error:

/dstage/appl/inbox/Misc/more rew.Flat_Fee_LocationExclusionList.csv
rew.Flat_Fee_LocationExclusionList.csv: No such file or directory

/dstage/appl/inbox/Misc>cat rew.Flat_Fee_LocationExclusionList.csv
cat: Cannot open rew.Flat_Fee_LocationExclusionList.csv: No such file or directory


Please let me know your thoughts on this.

Thanks,
Satheesh
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Everything you posted indicates that the file does not exist. How do you know that it does exist in that location?
satheesh_color
Participant
Posts: 182
Joined: Thu Jun 16, 2005 2:05 am

Post by satheesh_color »

Hi ArndW,


/dstage/appl/inbox/Misc>ll
total 4
-rw-rw-r-- 1 srajan02 dstage 56 Aug 10 20:58 rew.Flat_Fee_CDC_Codes.csv
-rw-rw-r-- 1 srajan02 dstage 12 Aug 10 21:04 rew.Flat_Fee_LocationExclusionList.csv


/dstage/appl/inbox/Misc>ls -ltr
total 4
-rw-rw-r-- 1 srajan02 dstage 56 Aug 10 20:58 rew.Flat_Fee_CDC_Codes.csv
-rw-rw-r-- 1 srajan02 dstage 12 Aug 10 21:04 rew.Flat_Fee_LocationExclusionList.csv


Thanks,
Sathesh
ShaneMuir
Premium Member
Premium Member
Posts: 508
Joined: Tue Jun 15, 2004 5:00 am
Location: London

Post by ShaneMuir »

I assume the user that you are accessing the system with has the correct user permissions for that file and directory?
satheesh_color
Participant
Posts: 182
Joined: Thu Jun 16, 2005 2:05 am

Post by satheesh_color »

Yes, I belongs to dstage user. No permission issue. we could see the file is present physically.

/dstage/appl/inbox/Misc>ll
total 4
-rw-rw-r-- 1 srajan02 dstage 56 Aug 10 20:58 rew.Flat_Fee_CDC_Codes.csv
-rw-rw-r-- 1 srajan02 dstage 12 Aug 10 21:04 rew.Flat_Fee_LocationExclusionList.csv


But we we try to access

/dstage/appl/inbox/Misc/more rew.Flat_Fee_LocationExclusionList.csv
rew.Flat_Fee_LocationExclusionList.csv: No such file or directory

/dstage/appl/inbox/Misc>cat rew.Flat_Fee_LocationExclusionList.csv
cat: Cannot open rew.Flat_Fee_LocationExclusionList.csv: No such file or directory.

Thanks,
Satheesh
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

There could be some stray characters at the end you cannot see. What happens if you try:

/dstage/appl/inbox/Misc> cat rew.Flat_Fee_LocationExclusionList.csv*
-craig

"You can never have too many knives" -- Logan Nine Fingers
satheesh_color
Participant
Posts: 182
Joined: Thu Jun 16, 2005 2:05 am

Post by satheesh_color »

Hi Chulett,

Exactly, Thanks for the heads-up.

dstage/appl/inbox/Misc>more rew.Flat_Fee_LocationExclusionList.csv*
17426
21814

Can you suggest me on how to access these files.



Thanks,
satheesh
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You need to figure out what added the spaces(?) to the end of the filename and fix it. Before that, you'll need to use a wildcard.
-craig

"You can never have too many knives" -- Logan Nine Fingers
satheesh_color
Participant
Posts: 182
Joined: Thu Jun 16, 2005 2:05 am

Post by satheesh_color »

Great Thanks. Chulett.



Satheesh.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

So, first place to check would be your "3rd party system" and see if they are the guilty party. If not, then suspect your ftp script / process.
-craig

"You can never have too many knives" -- Logan Nine Fingers
satheesh_color
Participant
Posts: 182
Joined: Thu Jun 16, 2005 2:05 am

Post by satheesh_color »

Hi Chulett,

I have identified the issue with the FTP job.we have an DS FTP job.The filename parameter in the job sequences had a space at the end of the file name. probably a cut and paste error. I removed the space and it works fine.

Once again thanks for your suggestions.



Regards,
Satheesh
Post Reply