GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Data Warehousing  >  DataStage
Go To First  |  Previous Question  |  Next Question 
 DataStage  |  Question 87 of 390    Print  
What about System variables?

  
Total Answers and Comments: 3 Last Update: April 15, 2009   
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: pavan
 
DataStage provides a set of variables containing useful system information that you can access from a transform or routine. System variables are read-only. 
 
@DATE The internal date when the program started. See the Date function. 
 
@DAY The day of the month extracted from the value in @DATE. 
 
@FALSE The compiler replaces the value with 0. 
 
@FM A field mark, Char(254).  
 
@IM An item mark, Char(255). 
 
@INROWNUM Input row counter. For use in constrains and derivations in Transformer stages. 
 
@OUTROWNUM Output row counter (per link). For use in derivations in Transformer stages. 
 
@LOGNAME The user login name.  
 
@MONTH The current extracted from the value in @DATE. 
 
@NULL The null value.  
 
@NULL.STR The internal representation of the null value, Char(128).  
 
@PATH The pathname of the current DataStage project. 
 
@SCHEMA The schema name of the current DataStage project. 
 
@SM A subvalue mark (a delimiter used in UniVerse files), Char(252).  
 
@SYSTEM.RETURN.CODE  
Status codes returned by system processes or commands.  
 
@TIME The internal time when the program started. See the Time function. 
 
@TM A text mark (a delimiter used in UniVerse files), Char(251). 
 
@TRUE The compiler replaces the value with 1. 
 
@USERNO The user number.  
 
@VM A value mark (a delimiter used in UniVerse files), Char(253). 
 
@WHO The name of the current DataStage project directory.  
 
@YEAR The current year extracted from @DATE. 
 
REJECTED Can be used in the constraint expression of a Transformer stage of an output link. REJECTED is initially TRUE, but is set to FALSE whenever an output link is successfully written. 


Above answer was rated as good by the following members:
ETLSafari
August 04, 2005 12:22:09   #1  
pavan        

RE: What about System variables?
DataStage provides a set of variables containing useful system information that you can access from a transform or routine. System variables are read-only.

@DATE The internal date when the program started. See the Date function.

@DAY The day of the month extracted from the value in @DATE.

@FALSE The compiler replaces the value with 0.

@FM A field mark Char(254).

@IM An item mark Char(255).

@INROWNUM Input row counter. For use in constrains and derivations in Transformer stages.

@OUTROWNUM Output row counter (per link). For use in derivations in Transformer stages.

@LOGNAME The user login name.

@MONTH The current extracted from the value in @DATE.

@NULL The null value.

@NULL.STR The internal representation of the null value Char(128).

@PATH The pathname of the current DataStage project.

@SCHEMA The schema name of the current DataStage project.

@SM A subvalue mark (a delimiter used in UniVerse files) Char(252).

@SYSTEM.RETURN.CODE
Status codes returned by system processes or commands.

@TIME The internal time when the program started. See the Time function.

@TM A text mark (a delimiter used in UniVerse files) Char(251).

@TRUE The compiler replaces the value with 1.

@USERNO The user number.

@VM A value mark (a delimiter used in UniVerse files) Char(253).

@WHO The name of the current DataStage project directory.

@YEAR The current year extracted from @DATE.

REJECTED Can be used in the constraint expression of a Transformer stage of an output link. REJECTED is initially TRUE but is set to FALSE whenever an output link is successfully written.

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
March 15, 2006 03:38:27   #2  
raviatpals Member Since: March 2006   Contribution: 3    

RE: What about System variables?

If a new system variable is added in Windows how can we access it in datastage?

Thanks in advance


 
Is this answer useful? Yes | No
April 15, 2009 09:52:26   #3  
rameshkm Member Since: April 2009   Contribution: 7    

RE: What about System variables?
The variables which used in through out the system not in singale project is called System variables .some of the system variables are @FALSE @PARTITIONNUM @NUMPARTITIONS @TRUE which are avaialable in Transformer
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape