
  Doumentation zu: JobServer
  Stand vom              : 18.03.2010
  Letzte Aktualiesierung : 20.02.2012;J.Fes V2.962


  Inhalt:
  Liste der #Variablen die zur ersetzung von Variablen in Scripten verwendet werden können.
  Hinweis: die Gross - Kleinschreibung muss beachtet werden (2.962;20.02.2012;J.Fes)

  '-- Job Steuerungen -------------------------------------------------------------------------
  #JobName#                            = JobName
  #JobParameter#                       = JobParameter
  #JobScriptParametersExtended#        = erweiterte JobScript Parameter um z.B.
                                         set JobMgr_Debug=ON
                                         set UGII_LOAD_OPTIONS_NE=load_options_refile_load_ALL_comp.def
                                         set UGII_LOAD_OPTIONS_NE=load_options_refile_load_NO_comp.def
  #TceSiteId#                          = TceSiteId
  #TcSiteId#                           = TcSiteId             set TcSiteId=#TcSiteId#
  #TceUser#                            = TceUser
  #TceUserPassword#                    = TceUserPassword
  #TcUser#                             = TceUser         -> Replaces TceUser         (new 01.09.2010)
  #TcUserPassword#                     = TcUserPassword  -> Replaces TceUserPassword (new 01.09.2010)
  #RefilePaket_NE#                     = RefilePaket_NE
  #JobPacket_NE#                       = JobPacket_NE
  #JobObjectsPacket_NE#                = JobObjectsPacket_NE
  #JobObjectsPacketAllDetails_NE#      = JobObjectsPacketAllDetails_NE
  
  #JobRule.ProcStateCol#               = JobDef.JobRule.ProcStateCol
  #ProcStateCol#                       = JobDef.JobRule.ProcStateCol

  '---- Neu / Angepasst: 29.03.2013 --
  #JobDef.JobPacket_ObjectCount#       = .JobDef.JobPacket_ObjectCount
  #JobObjectsN#                        = .JobDef.JobPacket_ObjectCount

  #JobDef.JobControlRule.JobPacket_JobSumObjectCount#
                                       = .JobDef.JobControlRule.JobPacket_JobSumObjectCount
  #JobObjectApSumMax#                  = .JobDef.JobControlRule.JobPacket_JobSumObjectCount

  #JobRule.SelObjectsBy_Group#         = JobDef.JobRule.SelObjectsBy_Group
  #JobRule.SelObjectsBy_MaxApLevels#   = JobDef.JobRule.SelObjectsBy_MaxApLevels
  #JobRule.SelObjectsBy_MaxComponents# = JobDef.JobRule.SelObjectsBy_MaxComponents

  #JobRule.SelObjectsBy_MinApLevels#   = JobDef.JobRule.SelObjectsBy_MinApLevels
  #JobRule.SelObjectsBy_MinComponents# = JobDef.JobRule.SelObjectsBy_MinComponents

  #JobRule.SelObjectsBy_MultiSiteObjects#
                                       = JobDef.JobRule.SelObjectsBy_MultiSiteObjects
  #JobRule.SelObjectsBy_Name#          = JobDef.JobRule.SelObjectsBy_Name
  #JobRule.SelObjectsBy_ObjectLastModDateAfter#
                                       = JobDef.JobRule.SelObjectsBy_ObjectLastModDateAfter
  #JobRule.SelObjectsBy_ObjectLastModDateBefor#
                                       = JobDef.JobRule.SelObjectsBy_ObjectLastModDateBefor

  #JobRule.SelObjectsBy_ObjectType#    = JobDef.JobRule.SelObjectsBy_ObjectType
  #ObjectType#                         = JobDef.JobRule.SelObjectsBy_ObjectType

  #JobRule.SelObjectsBy_Owner#         = JobDef.JobRule.SelObjectsBy_Owner
  #JobRule.SelObjectsBy_PFM#           = JobDef.JobRule.SelObjectsBy_PFM
  #JobRule.SelObjectsBy_ProcStateJobControlButton_N_or_M#
                                       = JobDef.JobRule.SelObjectsBy_ProcStateJobControlButton_N_or_M

  #JobRule.SelObjectsBy_ProcStateVal#  = JobDef.JobRule.SelObjectsBy_ProcStateVal
  #ProcStateVal#                       = JobDef.JobRule.SelObjectsBy_ProcStateVal

  #JobRule.SelObjectsBy_SQLScript_PPNE#= JobDef.JobRule.SelObjectsBy_SQLScript_PPNE
  #JobRule.SelObjectsBy_SQLScript_YN#  = JobDef.JobRule.SelObjectsBy_SQLScript_YN
  #JobRule.SelObjectsBy_UgMasterType#  = JobDef.JobRule.SelObjectsBy_UgMasterType
  #JobRule.SelObjectsBy_Volume#        = JobDef.JobRule.SelObjectsBy_Volume
  #JobRule.TimeSchedule#               = JobDef.JobRule.TimeSchedule
  #JobRule.validForComputer#           = JobDef.JobRule.validForComputer

  #JobRule.SelObjectsBy_ObjectClass#   = JobDef.JobRule.SelObjectsBy_ObjectClass_Enum_AsString
  #JobRule.SelObjectsBy_ObjectSpecSelRule# = JobDef.JobRule.SelObjectsBy_ObjectSpecSelRule_Enum_AsString
  #ObjectClass#                        = JobDef.JobRule.SelObjectsBy_ObjectClass_Enum_AsString


  '-- Neu 25.06.2009 - - - -
  #JobScriptTemplate_DP#        : Verz. in dem das JobScript auf dem Server liegt [Example: ..\JobManagerV2\90-DATA\Custom_SettingsGlobal\10-JobScripts\NXCheckBox\ClientScripts]
  #JobScriptTemplateMinus1_DP#  : 1 Verz. tiefer als #JobScriptTemplate_DP#       [Example: ..\JobManagerV2\90-DATA\Custom_SettingsGlobal\10-JobScripts\NXCheckBox]
  #JobScriptTemplate_DPNE#      : Quelle der Scriptvorlage                        [Example: ..\JobManagerV2\90-DATA\Custom_SettingsGlobal\10-JobScripts\NXCheckBox\ClientScripts\NXCheckBox.Cmd]
  '-- Neu 05.04.2011 - - - -
  #JobScript_DP#                : Verz. in dem das JobScript auf dem Server liegt [Example: ..\JobManagerV2\90-DATA\Custom_SettingsGlobal\10-JobScripts\NXCheckBox\ClientScripts]
  #JobScriptMinus1_DP#          : 1 Verz. tiefer als #JobScriptTemplate_DP#       [Example: ..\JobManagerV2\90-DATA\Custom_SettingsGlobal\10-JobScripts\NXCheckBox]
  #JobScript_DPNE#              : Quelle der Scriptvorlage                        [Example: ..\JobManagerV2\90-DATA\Custom_SettingsGlobal\10-JobScripts\NXCheckBox\ClientScripts\NXCheckBox.Cmd]


  '-- Job Angaben der Site des aktubezogene Site Info ------------------------------------------
  #TcSite.Id#                                             .JobDef.Site_cls_Using.Id
  #TcSite.DBNetworkAlias#                                 .JobDef.Site_cls_Using.DBNetworkAlias
  #TcSite.DBProvider#                                     .JobDef.Site_cls_Using.DBProvider
  #TcSite.OracleBin#                                      .JobDef.Site_cls_Using.OracleBin
  #TcSite.OracleHome#                                     .JobDef.Site_cls_Using.OracleHome
  #TcSite.pName#                                          .JobDef.Site_cls_Using.pName
  #TcSite.Tns_Admin#                                      .JobDef.Site_cls_Using.Tns_Admin
  #TcSite.UserName#                                       .JobDef.Site_cls_Using.UserName
  #TcSite.UserPW#                                         .JobDef.Site_cls_Using.Password
  #TcSite.SiteAktive_bol#                                 .JobDef.Site_cls_Using.SiteAktive_bol.ToString
  #TcSite.pSite_ID#                                       .JobDef.Site_cls_Using.pSite_ID
  #TcSite.pName#                                          .JobDef.Site_cls_Using.pName
  #TcSite.ImportItemLastModifyDateBegin#                  .JobDef.Site_cls_Using.ImportItemLastModifyDateBegin.ToString
  #TcSite.ImportItemLastModifyDateEnd#                    .JobDef.Site_cls_Using.ImportItemLastModifyDateEnd.ToString

  #TcSite.NativeRoot_DP#                                  .JobDef.Site_cls_Using.NativeRoot_DP
  #TcSite.NativeMaskAp#                                   .JobDef.Site_cls_Using.NativeMaskAp
  #TcSite.NativeFileSysUsing_bol#                         .JobDef.Site_cls_Using.NativeFileSysUsing_bol.ToString
  #TcSite.NativeFileMaskExclude#                          .JobDef.Site_cls_Using.NativeFileMaskExclude
  #TcSite.NativeFileMaskInclude#                          .JobDef.Site_cls_Using.NativeFileMaskInclude
  #TcSite.SiteInfoWith_SiteId_and_pName#                  .JobDef.Site_cls_Using.SiteInfoWith_SiteId_and_pName


  '-- Angaben zu den JobServer Basisverzeichnissen  --------------------------------------------
  #TcpPeerAddr#                                           .JobServer_TcpPeerAddr
  #JobServerComputerName#                                 .JobServer_ComputerName
  #TcpPeerPort#                                           .JobServer_TcpPeerPort
  #JobClientWaitTimeForNextServerConnection#              .JobServer_JobClientWaitTimeForNextServerConnection
  #FileTrans_1MBTimeOut#                                  .JobServer_TcpServerFileTrans_1MBTimeOut
  #TcpServer_BaseComTimeOut#                              .JobServer_TcpServer_BaseComTimeOut


  '-- Angaben zu den JobServer Basisverzeichnissen  --------------------------------------------
  ' siehe auch Verteilscripte ..\01-BinServer\Client_Distribute.cmd.txt

  #MyApplName_TP#                                         MyApplBase_TP
  #DataRoot_CustomWorkInst_DP#                            .Dir_DataRoot_DP_CustomWorkInst

  #00-ApplRoot_DP#                                        .Dir_RootUsed_DP
  #01-BinServer_DP#                                       .Dir_01_BinServer_DP
  #02-BinClient_DP#                                       .Dir_02_BinClient_DP
  #03-BinPublic_DP#                                       .Dir_03_BinPublic_DP               
  
  New: 2.962;20.02.2012;J.Fes
  #03_BinPublic_ClientServer_DP#                          set BinPublic_ClientServer_DP=#03_BinPublic_ClientServer_DP#
  #03-BinPublic_Custom_DP#                                set BinPublic_Custom_DP=#03-BinPublic_Custom_DP#
  
  #10-JobLogArchiv#                                       .Dir_DataRoot_DP_10JobLogArchiv
  #11-ServerSysLog#                                       .Dir_DataRoot_DP_11ServerSysLog
  #12-Data#                                               .Dir_DataRoot_DP_12Data.ToString

  #11-Doku_DP#                                            .Dir_11_DocumentationCustom_DP
  #90-Data_DP#                                            .Dir_DataRoot_DP_DATA

  #DataRoot_CustomWorkInst_DP#                            .Dir_DataRoot_DP_CustomWorkInst

  #20-JobComputerScripts_DP#                              .Dir_DataRoot_DP_Customer_SettingsGlobal_20JobComputerScripts
  #20-JobComputerScripts_Template_DP#                     .Dir_DataRoot_DP_Customer_SettingsGlobal_20JobComputerScripts_Template
  #30-TSQLComputerScripts_DP#                             .Dir_DataRoot_DP_Customer_SettingsGlobal_30TSQLScripts

  #10-JobScripts_DP#                                      .Dir_DataRoot_DP_Customer_SettingsGlobal_10JobScripts [Example: ..\JobManagerV2\90-DATA\CustomerNameShort_SettingsGlobal\10-JobScripts]
  #10-JobScripts_Template_DP#                             .Dir_DataRoot_DP_Customer_SettingsGlobal_10JobScripts_Templates

  New: 2.987;05.04.2012;J.Fes;Diese kann genutzt werden um z.B. in einer E-Mail auf den JobLogZipArchive File zu verweisen.
  #JobLogZipArchiv_DPNE#                                  set JobLogZipArchiv_DPNE=#JobLogZipArchiv_DPNE#



  '-- Angaben zum JobComputer Client ----------------------------------------------
  #JobComputers_tbl.ComputerName#                         .ComputerName
  #JobComputers_tbl.ComputerFQDN#                         .ComputerFQDN (new 09.07.2010)
  #JobComputers_tbl.ComputerAktiv#                        .ComputerAktiv
  #JobComputers_tbl.TceUser#                              .TceUser
  #JobComputers_tbl.TcePassword#                          .TcePassword

  #JobComputers_tbl.TimeSchedule#                         .TimeSchedule
  #JobComputers_tbl.LastConnectionDateTimeLocal#          .LastConnectionDateTimeLocal
  #JobComputers_tbl.LastConnectionDateTimeGMT#            .LastConnectionDateTimeGMT

  #JobComputers_tbl.Memory#                               .Memory
  #JobComputers_tbl.CpuMhz#                               .CpuMhz

  #JobComputers_tbl.Os#                                   .OS
  #JobComputers_tbl.OsUser#                               .OsUser
  #JobComputers_tbl.OsPassword#                           .OsPassword
  #JobComputers_tbl.OSDestrib_DP#                         .OSDestrib_DP

  #JobComputers_tbl.ComputerDescription#                  .ComputerDescription
  #JobComputers_tbl.ComputerAssignment#                   .ComputerAssignment

  #JobComputers_tbl.NxVersion#                            .NxVersion
  #JobComputers_tbl.TceVersion#                           .TceVersion

  #JobComputers_tbl.Place#                                .Place
  #JobComputers_tbl.Notice#                               .Notice
  #JobComputers_tbl.IP#                                   .IP

  #JobComputers_tbl.Custom01#                             .Custom01  (new 09.07.2010)
  #JobComputers_tbl.Custom02#                             .Custom02  (new 09.07.2010)
  #JobComputers_tbl.Custom03#                             .Custom03  (new 09.07.2010)
  #JobComputers_tbl.Custom04#                             .Custom04  (new 09.07.2010)


  '-- Angaben zur Job Server Software  --------------------------------------------
  #MyApplVer#                                             MyApplVer
  #MyApplBase_TP#                                         MyApplBase_TP
  #MyApplTitle#                                           MyApplTitle
  #MyApplTitleShort#                                      MyApplTitleShort


  '-- Angaben zu dem SQL Server   --------------------------------------------
  ' SQL Server -> siehe auch TSQL Scripts
  #DB_N#                                                  .MSSQL_DATABASE_Name
  #DB_DP#                                                 .MSSQL_DATABASE_DataMdf_DP
  #DB_mdf_NE#                                             .MSSQL_DATABASE_DataMdf_NE
  #DB_mdf_DPNE#                                           .MSSQL_DATABASE_DataMdf_DPNE
  #DB_ldf_NE#                                             .MSSQL_DATABASE_DataLdf_NE
  #DB_ldf_DPNE#                                           .MSSQL_DATABASE_DataLdf_DPNE

  '-- JobPlaner Variablen ---------------------------------------------------
   rem JobPlanerValues Info alle Variablen beginen mit JobPlaner_
  #JobPlaner_Owner#                                       UserName des Users der den JobPlaner Task erzeugt hat
  #JobPlaner_Param#                                       Parameter die beim erzeugen des JobPlaner Task ausgewählt wurden

  #JobPlaner_ProcessStepControl#                          Aktueller Process Step .. UGMaster .. UGNonMaster .. Done
  #JobPlaner_TimeSchedule#                                Schedule Time [DA=28.04.2009 TP=15:40]
  #JobPlaner_Name#                                        Name des Task
  #JobPlaner_NameDescription#                             Name + Description
  #JobPlaner_Description#                                 Description des Task
  #JobPlaner_Note#                                        Note die dem task Datensatz hinterlegt wurde
  #JobPlaner_Order#                                       Reihenfolge des Task
  #JobPlaner_ProcessLastMsg#                              Aktuelle letzte Meldung
  #JobPlaner_ProcessLastRunStart#                         Task Last Run Start
  #JobPlaner_ProcessLastRunEnd#                           Task Last Run Ende
  #JobPlaner_ProcessObjectsProcStateCol#                  Task bezieht sich auf Process Group Nummer
  #JobPlaner_ProcessState#                                Task State N .. P .. W .. D
  #JobPlaner_ProcessStepControl#                          StepControl UGMaster .. UGNonMaster .. Done
  #JobPlaner_ProcessType#                                 JPJob=JobPlaner.Job  TaskJob=Task.Job
  #JobPlaner_ReDo#                                        ist Redo Aktive ?

  '-- JobPlaner Umgebungsvariable ------------------------------------------- 
  Info alle Umgebungsvariablen die beim erzeugen eines JobPlanerTask's gesetzt sind können über die
  #JobPlanerEnv_UMGEBUNGSVARNAME# in das Script uebernommen werden. Hinweis: die Umgebungsvariable muss Gross geschrieben werden!!
  Beispiel:
  #JobPlanerEnv_PATH#                                    Wert der Path Variaben die gesetzt war in der Umgebung des JobPlaners
  #JobPlanerEnv_COMPUTERNAME#                            ComputerName des Rechners auf dem der JobPlanerTask erzeugt wurde
