Image not found Collapse All | Expand All | Show Default


KgdGetSlash
DataStage Routine Report
Generated 2004-07-11 09:47:08pm


 - Routine Information  

Property Value
SubType Transform Function 
Category KimD 
Author Kim Duke 
Arg Count
Version 2.0.0 
Routine Type
Short Description return / or \ based on OS 
Long Description Routine: KgdGetSlash
=================================================================
Description:
return / or \ based on OS
=================================================================
Arguments:
1. NotUsed
=================================================================
Modification History
=================================================================
Developer Date Modification description
======== ========= ==============================================
kduke 2004-05-28 created
======== ========= ==============================================
 


 - Arguments  

Argument Description
NotUsed  


 - Source Code  

LineNo Source Code
1        FUNCTION KgdGetSlash(NotUsed)
2 * ------------------------------------------------------------
3 * KgdGetSlash(NotUsed)
4 * Decription: Returns / or \ based on OS
5 * Written by: Kim Duke
6 * Notes:
7 * ------------------------------------------------------------
8 * $INCLUDE DSINCLUDE JOBCONTROL.H
9        Ans = '/'
10        If System(91) = 0 Then
11           Shell = "UNIX"
12           Sep = '/'
13           OtherSep = '\'
14        End Else
15           Shell = "DOS"
16           Sep = '\'
17           OtherSep = '/'
18        End
19        Ans = Sep
20 * ------------------------------------------------------------
21 TheEnd:
22        print "Ans = ":Ans
23  
24  
25        RETURN(Ans)






Ascential and DataStage are trademarks of Ascential Software Corporation or its affiliates and may be registered in the United States or other jurisdictions.
Not for resale. For questions or comments regarding KgdGenHtml, contact kim_g_duke@hotmail.com.