timestamp
Moderators: chulett, rschirm, roy
-
- Charter Member
- Posts: 822
- Joined: Sat Sep 17, 2005 5:25 pm
- Location: USA
Thats completely upto you. Because when you pass a value during dsjob -run, that param value overwrites the default. So its upto you weather to keep it blank or not.
For now, for testing purposes, keep it blank, so that we know whether the param value is being picked up by the job or not.
For now, for testing purposes, keep it blank, so that we know whether the param value is being picked up by the job or not.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
-
- Charter Member
- Posts: 822
- Joined: Sat Sep 17, 2005 5:25 pm
- Location: USA
When i am leaving it as empty it is giving me this warning:
But when i am passing the date it is taking the default value.
Thanks
Sam
Code: Select all
IDC_CARDS_VALID_INIT_EXTR.Initial_Extract: Sybase Server warning 249 (severity 16): Syntax error during explicit conversion of VARCHAR value ' ::' to a DATETIME field.
Thanks
Sam
-
- Charter Member
- Posts: 822
- Joined: Sat Sep 17, 2005 5:25 pm
- Location: USA
so that means our sql works fine. Now we know its the script thats creating the problem. Can you please post the param file and the complete dsjob command.
Also go at the unix cmd line,
vi the param file
press shift and then $
the cursor should jump on the last letter of the last line. If that doesnt happen then that means you have a <LF> in your param file which is not good.
Also go at the unix cmd line,
vi the param file
press shift and then $
the cursor should jump on the last letter of the last line. If that doesnt happen then that means you have a <LF> in your param file which is not good.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
-
- Charter Member
- Posts: 822
- Joined: Sat Sep 17, 2005 5:25 pm
- Location: USA
Ok Let me save you from the torture of vi.
Run this command on the unix and you will be fine
Pass the newparamfile.txt to the script that calls the dsjob command
Run this command on the unix and you will be fine
Code: Select all
sed 'N;s/\n/ /' paramfile.txt > newparamfile.txt
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
-
- Charter Member
- Posts: 822
- Joined: Sat Sep 17, 2005 5:25 pm
- Location: USA
-
- Charter Member
- Posts: 822
- Joined: Sat Sep 17, 2005 5:25 pm
- Location: USA
I am getting all the parameters which are defined but getting all default values.I believe it is not picking up the parameter values from the script.The script is in other post
viewtopic.php?t=100380
Thanks
Sam
viewtopic.php?t=100380
Thanks
Sam
ok. Try this
Recompile the job
go to the unix command line
try to run ur job via the command line
Make sure your in the dir where your parameter file is.
Say your parameter file is called param.txt
Run this command and let me know if it works. Also make sure from the director that its picking up the parameters that you are providing from the param file
Recompile the job
go to the unix command line
try to run ur job via the command line
Make sure your in the dir where your parameter file is.
Say your parameter file is called param.txt
Run this command and let me know if it works. Also make sure from the director that its picking up the parameters that you are providing from the param file
Code: Select all
/ibmdscode/Ascential/DataStage/DSEngine/bin/dsjob -run `cat param.txt` Projectname Jobname
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.