Image not found Collapse All | Expand All | Show Default


KgdGetShell
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 Returns UNIX or DOS 
Long Description Routine: KgdGetShell
=================================================================
Description:
Returns UNIX or DOS
=================================================================
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 KgdGetShell(NotUsed)
2 * ------------------------------------------------------------
3 * KgdGetShell(NotUsed)
4 * Decription: Returns UNIX or DOS
5 * Written by: Kim Duke
6 * Notes:
7 * ------------------------------------------------------------
8 * $INCLUDE DSINCLUDE JOBCONTROL.H
9        Ans = 'DOS'
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 = Shell
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.