Lookup from a blank dataset

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
lynnliu
Premium Member
Premium Member
Posts: 40
Joined: Tue Oct 28, 2003 7:13 pm

Lookup from a blank dataset

Post by lynnliu »

Hi all,

I am going to perform a lookup from a lookup dataset, the dataset may or may not be blank (without record). If the dataset is empty, when processing, error come out? Anyway I can merge / lookup / join a blank lookup file?

Thanks!
Woth
Participant
Posts: 24
Joined: Thu Mar 18, 2004 8:18 pm

Re: Lookup from a blank dataset

Post by Woth »

Hello,
It HAS (the dataset) to exist and I'm positive that you will get an error when the dataset that you are looking up is empty, you'll get a warning for sure. I need more information about what you are trying to do here, a lookup from a lookup?

[quote="lynnliu"]

I am going to perform a lookup from a lookup dataset, [/quote]

thanks
lynnliu
Premium Member
Premium Member
Posts: 40
Joined: Tue Oct 28, 2003 7:13 pm

Post by lynnliu »

The case as follows:

1. A master input file, based on the business rules, it may or may not generate a master reject file which failed on the business rules checking.

2. Then if master record rejected, all the related child records should reject.

3. Therefore, I need to perform a lookup for Child records to master reject file

Any suggestion?

Thanks!
Woth
Participant
Posts: 24
Joined: Thu Mar 18, 2004 8:18 pm

Post by Woth »

Hello, Thanks for the clarifications.
Let me draw this for ya:

Code: Select all

InputFile-----Transform------Lookup-------OutputFile
                     |	           |     |
                     |	           |     |
                     Reject file    |     |
                     	 |         |     |
                     	 |         |     |
                     	  Funnel         |
		                               |	 |
		                                RejectFile         

Basically, the after the transformer takes the decision (according to the business rules), the lookup check in the reject files for the parent, if it matches, the record is rejected, if not, all is Ok.

If you need more explenations, dont hesitate...


Woth
    Post Reply