Persist Generated File Infile..Row_Generator
Moderators: chulett, rschirm, roy
Persist Generated File Infile..Row_Generator
Hi DS folks,
please let me know if there is a way available to persist the input file generated by Row generator.i believe it uses a pipe stream to keep the generated records!
2) i can't find the bad file + param file generated, i see only control + log file even when there is a failure[is it the default behavior??]
please let me know
regards,
Prabu
please let me know if there is a way available to persist the input file generated by Row generator.i believe it uses a pipe stream to keep the generated records!
2) i can't find the bad file + param file generated, i see only control + log file even when there is a failure[is it the default behavior??]
please let me know
regards,
Prabu
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Good idea, Ray! BTW, could someone pls explain about the bad file and param not being accessible after a sqlldr failure. Meaning they are not being created, i believe.ray.wurlod wrote:There are many ways. Possibly the easiest is to follow the Row Generator stage with a Copy stage whose second output sends rows to a file. ...
pls let me know
regards,
Prabu
Pls dont hijack the thread, Create a new post for this purpose.
Last edited by kumar_s on Fri Sep 08, 2006 8:53 am, edited 1 time in total.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
Re: Persist Generated File Infile..Row_Generator
any pointers??prabu wrote:Hi DS folks,
2) i can't find the bad file + param file generated, i see only control + log file even when there is a failure[is it the default behavior??]
please let me know
regards,
Prabu
Are you using the DataStage SQL Load stage to BCP the records into the database?
Sounds like an obvious question but i just wanted to be sure.
If you are then there must be an option in the load stage whether to remove the temp files or not. I know for sure that the UDB load stage has that option, i am guessing the SQL load stage should have that option too.
Sounds like an obvious question but i just wanted to be sure.
If you are then there must be an option in the load stage whether to remove the temp files or not. I know for sure that the UDB load stage has that option, i am guessing the SQL load stage should have that option too.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Hi DSguru,DSguru2B wrote:Are you using the DataStage SQL Load stage to BCP the records into the database?
Sounds like an obvious question but i just wanted to be sure.
If you are then there must be an option in the load stage whether to remove the temp files or not. I know for sure that the UDB load stage has that option, i am guessing the SQL load stage should have that option too.
i am using Oracle Enterprise stage. the issue is i cannot see the BAD files generated.
the log file is having the entry as
Code: Select all
1 Row not loaded because all fields were null.
but when invoked it thr' DS with the load option , i coulnt see such a BAD file.
regards,
Prabu
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Ray, you are right! all null reocrds go toray.wurlod wrote:Perhaps an all-NULL row does not get written into a bad file. Check with your Oracle DBA or Oracle documentation. Or experiment outside of DataStage. ...
discard file
but datastage takes into account only
1)control file
2)log file
3)parfile and
4)bad file
how to pass the discard file also as a parameter. i have tried APT_ORACLE_LOAD_OPTIONS . but it seems to expect a control file. the job fails with
Code: Select all
Expecting keyword LOAD, found "discard".
regards,
Prabu
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
I don't currently have access to PX but would imagine that discard file is an optional property of the load stage. If you can find it (in Available Properties to Add), you can use a job parameter to supply its value.
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.