Anyone has encountered this problem before.

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
bala_135
Premium Member
Premium Member
Posts: 156
Joined: Fri Oct 28, 2005 1:00 am
Location: Melbourne,Australia

Anyone has encountered this problem before.

Post by bala_135 »

Hi,

I am trying to change the Quote character from " to 000 in a sequential file stage(target).When i do this and compile the job again the following error message appears.
Active stage has no output columns

I understand this error message but the column definition automatically goes off.I am not deleting it.Kindly let me know anything can be done for this to get back the original job or if it requires re-indexing how can i do it for this job alone.Any help is most appreciated.

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

Post by ray.wurlod »

What exact version of DataStage? I can not reproduce on 7.5.2 on a Windows platform. Does reinstating the quote character magically reinstate the link definition?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
bala_135
Premium Member
Premium Member
Posts: 156
Joined: Fri Oct 28, 2005 1:00 am
Location: Melbourne,Australia

Post by bala_135 »

Hi Ray,

Apologies for not let the version correctly it is 7.5x2.Yes you are right that is what is happening.


Regards,
Bala.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

It seems that DS is inserting an active stage before the sequential file. Try adding a dummy transform stage to see if this behaviour changes. I assume the stage leading to the output is a passive one - is that right?
jdmiceli
Premium Member
Premium Member
Posts: 309
Joined: Wed Feb 22, 2006 10:03 am
Location: Urbandale, IA

Post by jdmiceli »

Please pardon my ignorance, but is it wise to replace a quote character with a 'nul' character (not NULL). I believe I heard Ray comment on that once and wanted to make sure I understand for my education as well.

Are you doing the replacemant a Transformer Stage in a derivation or something else?

You could issue a command against the file at the shell level as a 'before job command' to do the replacement. Since MKS toolkit comes with the DS install for Windows, your command would look something like

Code: Select all

cat filename | tr/\"/whatever/g >> new filename
You may have to tweak the syntax as I'm just pulling this out of my head.

Of course, if you have Perl available (come on, Craig knew I would do it! :lol: ), then you can just do it like this:

Code: Select all

perl -pe 's/\'/whatever/g' filename.
Hope that helps!
Bestest!

John Miceli
System Specialist, MCP, MCDBA
Berkley Technology Services


"Good Morning. This is God. I will be handling all your problems today. I will not need your help. So have a great day!"
bala_135
Premium Member
Premium Member
Posts: 156
Joined: Fri Oct 28, 2005 1:00 am
Location: Melbourne,Australia

Post by bala_135 »

Hi,

Thanks for the command.I am not doing anything at the transformer level only at the target stage changing the Quote character from " to 000 in the format tab of the sequential file stage.My concern is about the strange behaviour of datastage.Just want to know the ghost :twisted: behind this action.Anyways will look into your code as well.

Regards,
Bala.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

For strange hauntings you'd need to go back to IBM Support, they are the official Ghost Busters. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply