x$x variables

Archive of postings to DataStageUsers@Oliver.com. This forum intended only as a reference and cannot be posted to.

Moderators: chulett, rschirm

Locked
admin
Posts: 8720
Joined: Sun Jan 12, 2003 11:26 pm

x$x variables

Post by admin »

Your DataStage BASIC manual informs you that legal characters in variable names are alphanumerics (A-Z, a-z and 0-9), dollar signs ($), period (.) and percent sign (%) and perhaps, depending on your version, underscore (_).
Technically, therefore, there's no difference.
You will find that the percent sign (%) is used a lot in code generated by DataStage itself and dollar sign is used particularly as a separator character in constants (for example FINFO$FILEINODE).
But, to answer your question, the dollar sign is simply one of the characters that is legal in a variable name. It has no special significance.

----- Original Message -----
From: "Alex Martins"
Date: Tue, 13 Jan 2004 17:03:15 -0200
To: "Datastage-Users (E-mail)"
Subject: x$x variables

> Misters,
> what difference does it make when a variable has a '$' in its name?
> Tks,
> Alex
<b>PLEASE READ</b>
Do not contact admin unless you have technical support or account questions. Do not send email or Private Messages about discussion topics to ADMIN. Contact the webmaster concerning abusive or offensive posts.
admin
Posts: 8720
Joined: Sun Jan 12, 2003 11:26 pm

x$x variables

Post by admin »

----- Original Message -----
From: "Ray Wurlod"
To:
Sent: Tuesday, January 13, 2004 12:03 PM
Subject: Re: x$x variables


> Your DataStage BASIC manual informs you that legal characters in variable
names are alphanumerics (A-Z, a-z and 0-9), dollar signs ($), period (.) and
percent sign (%) and perhaps, depending on your version, underscore (_).
> Technically, therefore, there's no difference.
> You will find that the percent sign (%) is used a lot in code generated by
DataStage itself and dollar sign is used particularly as a separator
character in constants (for example FINFO$FILEINODE).
> But, to answer your question, the dollar sign is simply one of the
characters that is legal in a variable name. It has no special
significance.
>
> ----- Original Message -----
> From: "Alex Martins"
> Date: Tue, 13 Jan 2004 17:03:15 -0200
> To: "Datastage-Users (E-mail)"
> Subject: x$x variables
>
> > Misters,
> > what difference does it make when a variable has a '$' in its name?
> > Tks,
> > Alex
<b>PLEASE READ</b>
Do not contact admin unless you have technical support or account questions. Do not send email or Private Messages about discussion topics to ADMIN. Contact the webmaster concerning abusive or offensive posts.
admin
Posts: 8720
Joined: Sun Jan 12, 2003 11:26 pm

x$x variables

Post by admin »

Hi all
In a transformer one of the field value is a result of oconv function.
The target table is a date field with 'YYYY-MM-DD' format. The error we are
getting is unable to convert a string to a date in the transformer. Please
can you suggest a method in datastage to convert a string to a date in
server job.

Thanks
Nibha
----- Original Message -----
From: "Ray Wurlod"
To:
Sent: Tuesday, January 13, 2004 12:03 PM
Subject: Re: x$x variables


> Your DataStage BASIC manual informs you that legal characters in variable
names are alphanumerics (A-Z, a-z and 0-9), dollar signs ($), period (.) and
percent sign (%) and perhaps, depending on your version, underscore (_).
> Technically, therefore, there's no difference.
> You will find that the percent sign (%) is used a lot in code generated by
DataStage itself and dollar sign is used particularly as a separator
character in constants (for example FINFO$FILEINODE).
> But, to answer your question, the dollar sign is simply one of the
characters that is legal in a variable name. It has no special
significance.
>
> ----- Original Message -----
> From: "Alex Martins"
> Date: Tue, 13 Jan 2004 17:03:15 -0200
> To: "Datastage-Users (E-mail)"
> Subject: x$x variables
>
> > Misters,
> > what difference does it make when a variable has a '$' in its name?
> > Tks,
> > Alex
<b>PLEASE READ</b>
Do not contact admin unless you have technical support or account questions. Do not send email or Private Messages about discussion topics to ADMIN. Contact the webmaster concerning abusive or offensive posts.
Locked