how to create a dummy hashed file

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
parvathi
Participant
Posts: 103
Joined: Wed Jul 05, 2006 4:48 am
Contact:

how to create a dummy hashed file

Post by parvathi »

what are stages needed to create a dummy hashed file
loveojha2
Participant
Posts: 362
Joined: Thu May 26, 2005 12:59 am

Post by loveojha2 »

What do you mean by that?
You can execute this at the Administrator

Code: Select all

CREATE.FILE Hashed_File_Name DYNAMIC 
Success consists of getting up just one more time than you fall.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

All you need to create a hashed file is an output hashed file stage. This applies to any sort of hashed file, be it a "normal" one or a "dummy" one.
parvathi
Participant
Posts: 103
Joined: Wed Jul 05, 2006 4:48 am
Contact:

Post by parvathi »

i want to create job in the designer such that when i run the job a dummy
hashed file should be ceated

can i do like this..
transformer------>hashed file
i don't want any column names, just pathand the file name..

i have a doubt what should be spcified as input column in the transformer stage

when i run without specifying anything i get compilation error saying no input column in the transformer
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

If it is a dummy file then create a dummy key column as well. A hashed file needs at least one defined key column.
DeepakCorning
Premium Member
Premium Member
Posts: 503
Joined: Wed Jun 29, 2005 8:14 am

Post by DeepakCorning »

1. Create a dummy Key column in the file.
2. I think you will need to some constraint depending on @OUTROWNUM or @INROWNUM or a simple counter so that the job runs only for 0 rows and creates the file with no data in it.

As it is a dummy file it does not matter whther what columns it has.
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

Why not use create table?
Mamu Kim
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Why not use a Hashed File stage or a UV stage with the "create" option selected?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply