I want to give the file name in the sequentuial file from job parameters.
E.g If i have job parameter like this.
Variable Value
===== =====
p_FoldName /dw/dsadm
p_File MyFile.Txt
I gave like this in the sequential file stage. #p_FoldName##p_File #
But not working.
CAn anyone tell me wht need to do?
If I give an extra slash at the end of the p_FoldName its working fine.
Job Parameters
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
You're both right.
The slash is necessary to construct the pathname, and job parameter names can not include spaces.
So it's #p_FoldName#/#p_File# not #p_FoldName#/#p_File #
The slash is necessary to construct the pathname, and job parameter names can not include spaces.
So it's #p_FoldName#/#p_File# not #p_FoldName#/#p_File #
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.
Or as noted in the original post, make sure the pathname parameter value has a trailing separator:
p_FoldName /dw/dsadm/
p_File MyFile.Txt
#p_FoldName##p_File#
Makes it more portable if that is a consideration. However, I put the slash between the parameters as there's no chance of going from UNIX to Windows here and peoples tend to forget to supply the trailing slash.![Wink :wink:](./images/smilies/icon_wink.gif)
p_FoldName /dw/dsadm/
p_File MyFile.Txt
#p_FoldName##p_File#
Makes it more portable if that is a consideration. However, I put the slash between the parameters as there's no chance of going from UNIX to Windows here and peoples tend to forget to supply the trailing slash.
![Wink :wink:](./images/smilies/icon_wink.gif)
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Premium Member
- Posts: 238
- Joined: Fri Jul 25, 2008 8:55 am