Newline in Basic Routine (calling Teradata bteq)

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
shershahkhan
Participant
Posts: 64
Joined: Fri Jan 25, 2008 4:41 am

Newline in Basic Routine (calling Teradata bteq)

Post by shershahkhan »

Hi,
I am trying to do the following in Routine

sFirst = '.logon server/user, password;'
sSecond = 'Select Date;'
sThird = '.logoff;'

sFinal = sFirst : [newline] :sSecond : [newline] : sThird

How can i make a string so that i can insert a newline character inb between, and then i can pass it to Teradata.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Code: Select all

vNL = Char(10)

sFinal = sFirst : vNL :sSecond : vNL : sThird 
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
harish_s_ampeo
Participant
Posts: 26
Joined: Tue Dec 18, 2007 6:31 am

Post by harish_s_ampeo »

I am also facing the same issue... the nVL is not working for me..
In the unix, the input command just logs me in but doesnt execute the sql as nVL is not working...

Please can u tell me the resolution for this
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

By going back to your own post on the topic and not jumping into anything you can find where Teradata is mentioned. Post there what you are trying and what isn't working about it.
-craig

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