Routine Error
Moderators: chulett, rschirm, roy
Routine Error
Hi Friends,
My routine A is trying get the paramaterfile and read the contents
ERROR
Full parameter filename = /
(fatal error from A): Error opening parameters file, '/', status = 2
ROUTINE
#include DSINCLUDE JOBCONTROL.H
Ans = 0
Equate RoutineName To "A"
FullParamFileName = Trim(paramfile)
Call DSLogInfo("Full parameter filename = " : FullParamFileName,RoutineName)
ParamErr = 0
*
* Try to open the file...
*
OpenSeq FullParamFileName To ProjectParamFileVar
Else
Msg = 'Error opening parameters file, ' : SQuote(FullParamFileName) : ', status = ' : Status()
Call DSLogFatal(Msg, RoutineName)
Abort
End
-------------------------------------------
And I gave paramfile value expression as './file' while is there in current directory.
can anyone help me if this routine is right.
Thanks
My routine A is trying get the paramaterfile and read the contents
ERROR
Full parameter filename = /
(fatal error from A): Error opening parameters file, '/', status = 2
ROUTINE
#include DSINCLUDE JOBCONTROL.H
Ans = 0
Equate RoutineName To "A"
FullParamFileName = Trim(paramfile)
Call DSLogInfo("Full parameter filename = " : FullParamFileName,RoutineName)
ParamErr = 0
*
* Try to open the file...
*
OpenSeq FullParamFileName To ProjectParamFileVar
Else
Msg = 'Error opening parameters file, ' : SQuote(FullParamFileName) : ', status = ' : Status()
Call DSLogFatal(Msg, RoutineName)
Abort
End
-------------------------------------------
And I gave paramfile value expression as './file' while is there in current directory.
can anyone help me if this routine is right.
Thanks
When Iam actually testing the routine If I dont supplying any quotes for the values and it is working fine.chulett wrote:And you've verified that path that you log is correct and that it not only exists but you have the proper permissions on it as well? Does this work when you 'Test' it and only fail in the job or does ...
But when I call the routine in a job activity it is not accepting if I dont supply quotes to the values. And then If I supply quotes and run I getting the error that I have posted earlier.
Can anyone help me please.
Thanks
Two problems here. One is you don't call a routine from a Job Activity stage - do you mean a Routine Activity stage? And what does "not accepting" mean, what exactly are you putting in as the parameter value and what happens?karry450 wrote:But when I call the routine in a job activity it is not accepting if I dont supply quotes to the values.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
Sorry it is routine activity stage, When i mnt not accepting , it is showing in RED colour and Im unable to compile the job.chulett wrote:Two problems here. One is you don't call a routine from a Job Activity stage - do you mean a Routine Activity stage? And what does "not accepting" mean, what exactly are you putting in as the parameter value and what happens?karry450 wrote:But when I call the routine in a job activity it is not accepting if I dont supply quotes to the values.
Im putting as file and this shows red in colour and the job does nt get compiled, and when I put as './file' it is accepting and gives the error I have mentioned earlier
Last edited by karry450 on Tue Jul 28, 2009 11:00 pm, edited 1 time in total.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Re: Routine Error
You can't use OpenSeq to open / because / is a directory not a file.ERROR
Full parameter filename = /
(fatal error from A): Error opening parameters file, '/', status = 2
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Argh! Don't just repeat what you've already said, that doesn't help at all. I want to know the value you are putting there.karry450 wrote:Im putting paramfile value expression as file it shows in red and the job doesnt compilechulett wrote:Again, what exactly are you putting in the stage that it won't accept? ...
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers