Hi,
Can anybody tell the importance of the $ character and where we use it and how we use it.?
What is the importance of $ character in datastage
Moderators: chulett, rschirm, roy
The $ isn't the keyword, "$INCLUDE" is. This is a compile-time switch to include source from another file, in this case "SAMP.H" in "DSINCLUDE". Your code probably will not compile without it. You can read up on $INCLUDE and $INSERT in the DataStage BASIC Programmers Guide
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
It so happens that DSINCLUDE is the include file that DataStage uses, it is a subdirectory called "dsinclude" in the project directory. SAMP.H is a file in that directory and you can look at it.
n.b. I think that it is bad practice to put user defined include files into DSINCLUDE as they might be overwritten when upgrading or changing versions.
n.b. I think that it is bad practice to put user defined include files into DSINCLUDE as they might be overwritten when upgrading or changing versions.
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
SAMP.H is unlikely to be a shell script. The routine that contains the $INCLUDE command is definitely not a shell script - it's a DataStage routine.
You can log in to your server, cd to the project directory, cd to the DSINCLUDE subdirectory, and view SAMP.H there with any text viewer.
You can log in to your server, cd to the project directory, cd to the DSINCLUDE subdirectory, and view SAMP.H there with any text viewer.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
It is a DataStage BASIC header include file; I've never heard the term "library file" used for this. Just keep in mind that this is a user-written header, not one supplied as part of the package.
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>