Lat new line

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
denzilsyb
Participant
Posts: 186
Joined: Mon Sep 22, 2003 7:38 am
Location: South Africa
Contact:

Lat new line

Post by denzilsyb »

Hallo all

Is there a way to omit the last new line character in the constraint of a transformer? I dont want to have to revert to scripts and/or SEQ stages to do this.

I have tried LINK.COL > 0 and LINK.COL <> @NULL, but no luck.
dnzl
"what the thinker thinks, the prover proves" - Robert Anton Wilson
ogmios
Participant
Posts: 659
Joined: Tue Mar 11, 2003 3:40 pm

Re: Lat new line

Post by ogmios »

denzilsyb wrote:Hallo all

Is there a way to omit the last new line character in the constraint of a transformer? I dont want to have to revert to scripts and/or SEQ stages to do this.

I have tried LINK.COL > 0 and LINK.COL <> @NULL, but no luck.
What do you mean with "last new line character in the constraint of transformer". The newlines in an outputfile are generated by the sequential stage.

Ogmios
denzilsyb
Participant
Posts: 186
Joined: Mon Sep 22, 2003 7:38 am
Location: South Africa
Contact:

Post by denzilsyb »

Hi ogmios

yes, the new line is generated in the SEQ stage, but i have an extra "line" of "data" after all my detail records are listed. i.e.

Code: Select all

col1|col2|col3|CR/LF
dat1|dat2|dat3|[color=red]CR/LF[/color]
<this is an extra record with nothing in, not even NULL>
i want to omit the CR/LF in red above. (ok, not red, but CR/LF)
dnzl
"what the thinker thinks, the prover proves" - Robert Anton Wilson
ogmios
Participant
Posts: 659
Joined: Tue Mar 11, 2003 3:40 pm

Post by ogmios »

In a sequential stage generating a file you have the option "Omit last new-line" on the inputs/format tab (left lower side of the tab).

I guess you need that one.

Ogmios
denzilsyb
Participant
Posts: 186
Joined: Mon Sep 22, 2003 7:38 am
Location: South Africa
Contact:

lat = last

Post by denzilsyb »

I was afaid of that. now i just need to go back and insert the stage to the job. thanks ogmios.
dnzl
"what the thinker thinks, the prover proves" - Robert Anton Wilson
Post Reply