Validating hash 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
vinodhraj
Participant
Posts: 53
Joined: Mon Sep 12, 2005 6:51 am

Validating hash file

Post by vinodhraj »

Hi DS Gurus,

I need a routine to validate a hash file.

Thanks

Vinod
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

What do you mean by validate? Check that it exists? It's populated? It's structurally correct?
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

And why do you "need" it? :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Code: Select all

FUNCTION ValidateHashFile(HashFile)
* Ignore input argument
Message = "There is no such thing as a hash file."
Message<-1> = "It's a HASHED file."
Call DSTransformError(Message, "ValidateHashFile")
Ans = @FALSE
RETURN(Ans)
(It has been brought to my attention that a hash file is a tool that can be used to re-shape a block of hash. This fact is not really within the scope of the present universe of discourse.)
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

42
Mamu Kim
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

In other words, we've got an answer now but have no idea what the original question was. :D
-craig

"You can never have too many knives" -- Logan Nine Fingers
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

No problem with the question; just tell me what the budget is for solving it and I'll get an answer for you.

To the original question
I need a routine to validate a hash file.
The "hash" has been addressed, the "need" has been touched upon so I think I should ask if it's really a "routine" or if a function, transform or sequence might not be sufficient.
vinodhraj
Participant
Posts: 53
Joined: Mon Sep 12, 2005 6:51 am

Post by vinodhraj »

Thanks all,

I am doing migration 71. to 7.5.
I have 5 hash files collected by a link collector and populated into a seq file. When running on 7.5 it shows abnormal termination.

Then I had made a fix, by inserting seq files after hash files followed by link collector.

My question is why it is not working before...

Thanks

Vinod
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You must provide the error messages and any "from previous run..." messages logged after resetting the job. Otherwise we have no diagnostic information on which to base any judgment.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
vinodhraj
Participant
Posts: 53
Joined: Mon Sep 12, 2005 6:51 am

Post by vinodhraj »

Hi ray,

This is the warning I got, no information about the hash file and only just abnormal termination of job name alone give in the log.

"Abnormal termination of stage LOADIPXIPStagingRecon.SCI_D_UK_ORG_MAP_18264.LC_IPXIP_Recon detected"

Thanks

vinod
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

After the job aborts, you must RESET the job in Director. Tell us of any "from previous run..." message that appears in the job log.
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