Not able to open text file

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
Xpert
Premium Member
Premium Member
Posts: 85
Joined: Wed Mar 01, 2006 7:17 am

Not able to open text file

Post by Xpert »

Hi all,

I have created a server job which has desing as below.

Seq.File -----> Transformer --------> Oracle stage

It successfully completed.

I have created a copy of the above job and the file metadata structure is same and used Parameter for Pathname and Filename.

when I check to view the data, its throwing the below error message.

"CopyOfJ_Stg_RAM_Asset..SEQ_Balance_CTL1.Src_Hash: DSD.SEQOpen Failed to open BH_RAMS_TRAILBAL_CTL.txt in directory /data/FINETL/incoming
STATUS = -1"


But when I hardcode the pathname and filename, I am able to view the data. And also when I use the previous run file, its not giving any error message.

Could anyone please help me out?

Thanks in advance.
With regards,
Xpert
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Something you might have already tried

1.) Copy one of "previous run" files as the new name and try to view
2.) When you "view data", does all required parameter prompts appear?
3.) Is there any special chars in the filename / format section?
mk_ds09
Participant
Posts: 72
Joined: Sun Jan 25, 2009 4:50 pm
Location: Pune

Post by mk_ds09 »

If hard coding is working and the parameters are not working means there are some issues with parameters only..

1.Check your parameters properly.
2.Check if there is any space of path name which you are passing is correct.

Hope this helps.
-----------------------------------
Regards
MK

What would you attempt to do if you knew you could not fail?

-----------------------------------
Xpert
Premium Member
Premium Member
Posts: 85
Joined: Wed Mar 01, 2006 7:17 am

Post by Xpert »

mk_ds09 wrote:If hard coding is working and the parameters are not working means there are some issues with parameters only..

1.Check your parameters properly.
2.Check if there is any space of path name which you are passing is correct.

Hope this helps.
Parameters are correct and there is no space.

If i pass the previous run file name, its showing the data but for new file, its throwing the error message.
With regards,
Xpert
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Disk full? File permissions? Directory permissions?
Verify parameter value (posted in "job starting" event in job log).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Xpert
Premium Member
Premium Member
Posts: 85
Joined: Wed Mar 01, 2006 7:17 am

Post by Xpert »

ray.wurlod wrote:Disk full? File permissions? Directory permissions?
Verify parameter value (posted in "job starting" event in job log).
Ray,

The directory and file has full rights. Disk is not full.

#$SrcPath##TPFileName#_CTL.txt

$SrcPath --> /data/FINETL/incoming/
TPFileName --> BH_RAMS_TRAILBAL

When I give the above values directly, its showing the data.

But when I use parameters, its throwing the error message.

I'm not able to understand. why its happening like this?
With regards,
Xpert
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

What happens if you use a job parameter that is NOT an environment variable?
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