Page 1 of 1

unable to view data in sequential and hashed files

Posted: Mon Nov 26, 2007 12:37 am
by major
when i was trying to view data in sequential or hashed files , an error of following type is coming
"DSD.SEQOpen Failed to open XXX.txt in directory $YYY STATUS = 2."

can someone please tell me why was it coming , is it due to permission issue or anything else

Posted: Mon Nov 26, 2007 12:54 am
by ray.wurlod
Welcome aboard.

Status 2 is an operating system code meaning "file does not exist". This may mean that the file itself does not exist or that one of the directories in its pathname does not exist, or that somewhere in that path you lack sufficient permission.

The fact that the error message includes $YYY suggests that you have attempted to use $YYY environment variable as a job parameter (entirely validly), but have neglected to enclose that job parameter reference between "#" characters in your pathname property, for example it should be

Code: Select all

#$YYY#/XXX.txt
It's useful to be aware that Windows is happy to accept "/" (as well as "\") as the pathname delimiter character; it makes a later transition to UNIX/Linux much easier.