﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>MVP Systems - Support</title><generator>InstantKB.NET 2.0.3</generator><description>MVP Systems - Support</description><link>http://www.jamssupport.com/</link><webMaster>Support@JAMSSupport.com</webMaster><lastBuildDate>Tue, 06 Jan 2009 17:20:50 GMT</lastBuildDate><ttl>20</ttl><item><title>Extending the SQLCMD execution method to work with any server</title><link>http://www.jamssupport.com/Goto50015.aspx</link><description>The SQLCMD Execution Method executes SQL commands against the default SQL Server instance on the machine where the job is running.  This article describes how you can create a new Execution Method which gets the SQL Server machine and instance from one of the job's parameters.&lt;br /&gt;&lt;br /&gt;We'll start by copying the SQLCMD Execution Method to a new Execution Method using the JAMS PowerShell snap-in and the following command (make sure you replace "YourServer" with the name of your JAMS Server):&lt;br /&gt;&lt;br /&gt;&lt;font class="Code" style="WIDTH: 768px; HEIGHT: 46px" face="Courier New"&gt;PS C:\&gt; copy JAMS::YourServer\Methods\SQLCMD JAMS::YourServer\Methods\SQLCMDSvr&lt;br /&gt;&lt;/font&gt;&lt;br /&gt;Now, open the SQLCMDSvr Execution Method in the JAMS GUI, click the "Source" tab and change the "Job Module" to "ParseSqlSvr".  Click the "Execution" tab and remove the "-S (local)" from the Command string.  Save those changes.&lt;br /&gt;&lt;br /&gt;Next, we need to create the ParsedSqlSvr macro that the Execution Method references in it's "Job Module".   Job template macros are kept in xml files.  The C:\Program Files\MVPSI\JAMS\Scheduler\BaseMacros.xml file contains the template macros that we ship with JAMS.  While it's possible to change the macros contained in BaseMacros.xml, we don't recommend it because that file is replaced every time a JAMS upgrade is installed.  Instead, create your own file to hold your custom macros.  Our CustomMacros.xml file contains this:&lt;br /&gt;&lt;br /&gt;&lt;font class="Code" style="WIDTH: 771px; HEIGHT: 249px"&gt;&lt;font face="Courier New"&gt;&amp;lt;?xml version="1.0" encoding="utf-8" ?&gt; &lt;br /&gt;&amp;lt;ArrayOfMacro xmlns:xsd="&lt;/font&gt;&lt;a href="http://www.w3.org/2001/XMLSchema"&gt;&lt;font face="Courier New"&gt;http://www.w3.org/2001/XMLSchema&lt;/font&gt;&lt;/a&gt;&lt;font face="Courier New"&gt;" xmlns:xsi="&lt;/font&gt;&lt;a href="http://www.w3.org/2001/XMLSchema-instance"&gt;&lt;font face="Courier New"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/font&gt;&lt;/a&gt;&lt;font face="Courier New"&gt;"&gt;&lt;br /&gt;  &amp;lt;Macro name="ParsedSqlSvr"&gt;&lt;br /&gt;    &amp;lt;Code&gt;&lt;br /&gt;      &amp;lt;![CDATA[-- JAMS Parsed Sql Script&lt;br /&gt;:Connect &amp;lt;&amp;lt;ServerName&gt;&gt;&lt;br /&gt;&amp;lt;&amp;lt;JAMS.Source&gt;&gt;&lt;br /&gt;]]&gt;&lt;br /&gt;    &amp;lt;/Code&gt;&lt;br /&gt;  &amp;lt;/Macro&gt;&lt;br /&gt;&amp;lt;/ArrayOfMacro&gt;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;br /&gt;It's hard to see the ParsedSqlSvr macro because it's wrapped up in xml and a CDATA section, here is the actual source of the macro:&lt;br /&gt;&lt;br /&gt;&lt;font class="Code" style="WIDTH: 773px; HEIGHT: 82px"&gt;-- JAMS Parsed Sql Script&lt;br /&gt;:Connect &amp;lt;&amp;lt;ServerName&gt;&gt;&lt;br /&gt;&amp;lt;&amp;lt;JAMS.Source&gt;&gt;&lt;br /&gt;&lt;/font&gt;&lt;br /&gt;It's a simple 3 line macro that is expanded when a job is submitted.  The only difference between this and the ParseSql macro that ships with JAMS is the addition of the ":Connect &amp;lt;&amp;lt;ServerName&gt;&gt;" line.  This line references the "ServerName" parameter and tells SQLCMD to connect to the specified SQL Server instance.&lt;br /&gt;&lt;br /&gt;We have to tell JAMS to use the CustomMacros.xml file, we do that by entering the full path to the file in the "Template Library" field of any JAMS System definition which should use CustomMacros.xml.  The "Template Library" field is located under the "Source Options" tab in the System Definition.&lt;br /&gt;&lt;br /&gt;We're done with the customizations and we're ready to put them to good use.  We can create jobs with an Execution Method of "SQLCMDSvr" entering SQL as the job's source.  We also have to make sure that the job has a parameter named "ServerName" which is where we specify the SQL Server and Instance when we submit the job.  &lt;br /&gt;&lt;br /&gt;</description><pubDate>Tue, 18 Nov 2008 15:35:16 GMT</pubDate><dc:creator>JohnV</dc:creator></item><item><title>SQL Server Express install fails</title><link>http://www.jamssupport.com/Goto50014.aspx</link><description>The JAMS Scheduler for Windows requires Microsoft's SQL Server.  The JAMS Setup kits will install SQL Server Express Edition if SQL Server is not already installed.  There is a known problem with Microsoft's SQL Server setup which causes the installation to fail if the SQL Server Native Client is already installed.  To work around this problem you have to uninstall the SQL Server Native Client and then rerun the JAMS Setup.&lt;br /&gt;&lt;br /&gt;This issue is documented is section 2.1 of this knowledgebase article:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://support.microsoft.com/kb/910229/en-us"&gt;http://support.microsoft.com/kb/910229/en-us&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;</description><pubDate>Tue, 30 Sep 2008 11:40:16 GMT</pubDate><dc:creator>JohnV</dc:creator></item><item><title>How do I get the Windows client working with an OpenVMS server?</title><link>http://www.jamssupport.com/Goto50004.aspx</link><description>The JAMS Windows based client tools can connect to either a Windows or OpenVMS based JAMS Server.  To connect to an OpenVMS Server, you must install and configure the JAMS OpenVMS Connector.  This guide will help you install, configure and troubleshoot the JAMS OpenVMS Connector.&lt;br /&gt;</description><pubDate>Wed, 17 Sep 2008 17:21:04 GMT</pubDate><dc:creator>JohnV</dc:creator></item><item><title>JAMS Services fail to start</title><link>http://www.jamssupport.com/Goto50008.aspx</link><description>There is a potential problem with the Microsoft .NET Framework that can prevent the JAMS Services from starting.  The .NET Framework verifies an executable images digital signature when a service starts.  During this verification the Framework downloads a certificate revokation list from:&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="http://crl.microsoft.com/pki/crl/products/CSPCA.crl"&gt;http://crl.microsoft.com/pki/crl/products/CSPCA.crl&lt;/a&gt;&lt;/p&gt;&lt;p&gt;If internet access is slow or access to this URL is blocked, the service may fail to start because the Service Control Manager times out waiting for the image to start.&lt;br /&gt;&lt;br /&gt;Here is a link to a Microsoft Knowledgebase article that talks about the problem:&lt;/p&gt;&lt;p&gt;&lt;a href="http://support.microsoft.com/kb/936707"&gt;http://support.microsoft.com/kb/936707&lt;/a&gt;&lt;/p&gt;&lt;p&gt;This Knowledgebase article describes how to increase the service timeout value which could be a way to work around this issue:&lt;/p&gt;&lt;p&gt;&lt;a href="http://support.microsoft.com/kb/922918"&gt;http://support.microsoft.com/kb/922918&lt;/a&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;</description><pubDate>Fri, 05 Sep 2008 14:09:14 GMT</pubDate><dc:creator>JohnV</dc:creator></item><item><title>Options for specifying the JAMS Server in PowerShell</title><link>http://www.jamssupport.com/Goto50006.aspx</link><description>If you're using the JAMS Snapin for PowerShell you've already found that every cmdlet has a "-Server" parameter that you can use to specify which JAMS Server should be used.  However, you probably don't want to use it!  The -Server parameter is fine when you want to explicitly specify the JAMS Server but it's easier to use one of the defaults.&lt;br /&gt;&lt;br /&gt;Here's how a JAMS cmdlet determines which JAMS Server it should use:&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Was -Server specified on the command line?&lt;/li&gt;&lt;li&gt;Is the $JAMSDefaultServer PowerShell variable defined?&lt;/li&gt;&lt;li&gt;Is our current default location a JAMS Provider drive?&lt;/li&gt;&lt;li&gt;Are we being executed as batch job by a JAMS Server?&lt;/li&gt;&lt;li&gt;Pick the first first JAMS Provider drive.&lt;/li&gt;&lt;li&gt;Throw an exception.&lt;/li&gt;&lt;/ol&gt;&lt;p&gt; Setting $JAMSDefaultServer is what we usually use when working interactively.  You might want to set that in your PowerShell profile but, be careful or you'll break option 4.  Option 4, checking to see if the cmdlet is being executed as a JAMS job, may be the most interesting option.  The idea is to make it easy to use JAMS cmdlets in your jobs without requiring any changes when the job moves from a test server to a production server.  &lt;br /&gt;&lt;br /&gt;So, how can you set $JAMSDefaultServer in your profile without breaking the default host option? Simple, just check for the $Host.PrivateData.  When JAMS executes a job, it creates a HostName property in $Host.PrivateData so you can do this in your profile:&lt;br /&gt;&lt;br /&gt;&lt;font face="Courier New"&gt;if ($Host.PrivateData.HostName -eq $null)&lt;br /&gt;{&lt;br /&gt;    $JAMSDefaultServer = "MyJAMSServer"&lt;br /&gt;}&lt;/font&gt;&lt;/p&gt;&lt;p&gt;  &lt;/p&gt;</description><pubDate>Tue, 26 Aug 2008 12:49:59 GMT</pubDate><dc:creator>JohnV</dc:creator></item><item><title>Are there any issues with OpenVMS V8.3?</title><link>http://www.jamssupport.com/Goto50001.aspx</link><description>&lt;p&gt;There are a couple of issues with VMS V8.3 but, they’re minor and it’s likely that you won’t run into them.  The fixes for these issues are in JAMS V4.2K (and later).&lt;br /&gt;&lt;br /&gt;If it’s not convenient to upgrade JAMS, you can avoid the issues by doing two things, first:&lt;/p&gt;&lt;p&gt;Make sure that your SYSUAF file does not have global buffers enabled.  You can check this by doing:&lt;/p&gt;&lt;p&gt;$ SET DEFAULT SYS$SYSTEM&lt;br /&gt;$ DIR/FULL SYSUAF&lt;/p&gt;&lt;p&gt;Look at “File attributes:”, the last item is the number of global buffers.  If that is greater than 0, set it to zero with:&lt;/p&gt;&lt;p&gt;$ SET FILE/NOGLOBAL SYSUAF&lt;/p&gt;&lt;p&gt;&lt;br /&gt;The second this is:&lt;/p&gt;&lt;p&gt;Check the value of your CTLPAGES setting by doing:&lt;/p&gt;&lt;p&gt;$ WRITE SYS$OUTPUT F$GETSYI(“CTLPAGES”)&lt;/p&gt;&lt;p&gt;Define the JAMS_SPARE_CTLPAGES logical name to be 40% of the value of CTLPAGES so, if CTLPAGES was 1056, you would do:&lt;/p&gt;&lt;p&gt;$ DEFINE/SYSTEM/EXEC JAMS_SPARE_CTLPAGES 422&lt;/p&gt;&lt;p&gt;Let us know if you have any questions or problems.&lt;br /&gt;&lt;/p&gt;</description><pubDate>Mon, 25 Aug 2008 21:16:04 GMT</pubDate><dc:creator>JohnV</dc:creator></item><item><title>Getting started with PowerShell</title><link>http://www.jamssupport.com/Goto50005.aspx</link><description>PowerShell is Microsoft's new scripting and command line environment.  It's a teriffic tool that will change the way that you manage your Windows machines.  This article will help you get started using the JAMS PowerShell snap-in.&lt;br /&gt;&lt;br /&gt;Before you can use the JAMS PowerShell snap-in, you have to have PowerShell.  If you don't already have PowerShell, you can download it from:&lt;br /&gt;&lt;br /&gt;http://www.Microsoft.com/PowerShell&lt;br /&gt;&lt;br /&gt;This is also a good place to learn about PowerShell.&lt;br /&gt;&lt;br /&gt;Once you have PowerShell installed, you have to make sure that you have to JAMS PowerShell snap-in installed.  If you installed the JAMS Client before PowerShell you must reinstall the JAMS Client to get the PowerShell snap-in.&lt;br /&gt;&lt;br /&gt;Before you can use a PowerShell snap-in, you have to add it to your PowerShell environment.  You do that with the Add-PSSnapin cmdlet.  Add the JAMS Snap-in like this:&lt;br /&gt;&lt;br /&gt;&lt;font face="Courier New"&gt;PS C:\&gt; Add-PSSnapin MVPSI.JAMS&lt;br /&gt;&lt;/font&gt;&lt;br /&gt;To get a list of the commands in the JAMS Snapin, enter:&lt;br /&gt;&lt;br /&gt;&lt;font face="Courier New"&gt;PS C:&gt; Get-Command -PSSnapIn MVPSI.JAMS&lt;br /&gt;&lt;/font&gt;&lt;br /&gt;To get help on any of those commands (or any other PowerShell command), try:&lt;br /&gt;&lt;br /&gt;&lt;font face="Courier New"&gt;PS C:\&gt; Get-Help the-command-you-want-help-with&lt;br /&gt;&lt;/font&gt;&lt;br /&gt;</description><pubDate>Mon, 25 Aug 2008 17:33:18 GMT</pubDate><dc:creator>BobS</dc:creator></item><item><title>How do I set the SMTP Server?</title><link>http://www.jamssupport.com/Goto50003.aspx</link><description>&lt;p&gt;The best place to specify the SMTP server is in the Machine.config file.  This will apply to all applications on that machine which use the SmtpClient class (unless overridden).  The Machine.config file is located in the C:\Windows\Microsoft.Net\Framework\v2.0.50727\Config directory.  There is also a Machine.config.comments file in that directory which contains some documentation.&lt;/p&gt;&lt;p&gt;You can also put the SMTP configuration in the JAMSScheduler.exe.config file which is in the C:\Program Files\MVPSI\JAMS\Scheduler directory.&lt;/p&gt;&lt;p&gt;An example of specifying the SMTP configuration is (you use the same syntax in either file):&lt;/p&gt;&lt;p&gt;  &amp;lt;system.net&gt;&lt;br /&gt;    &amp;lt;mailSettings&gt;&lt;br /&gt;      &amp;lt;smtp deliveryMethod="Network"&gt;&lt;br /&gt;        &amp;lt;network defaultCredentials="false" port="25" host="your.host.name.com" /&gt;&lt;br /&gt;      &amp;lt;/smtp&gt;&lt;br /&gt;    &amp;lt;/mailSettings&gt;&lt;br /&gt;  &amp;lt;/system.net&gt;&lt;/p&gt;&lt;p&gt;There is also a simple setting in the Common.config file which looks like this:&lt;/p&gt;&lt;p&gt; &amp;lt;add key="SMTPServer" value="your.host.name.com"/&gt;&lt;/p&gt;&lt;p&gt;The Common.config file is also located in C:\Program Files\MVPSI\JAMS\Scheduler.&lt;/p&gt;&lt;p&gt; &lt;/p&gt;</description><pubDate>Mon, 25 Aug 2008 10:44:56 GMT</pubDate><dc:creator>JohnV</dc:creator></item><item><title>How do I shrink the history file?</title><link>http://www.jamssupport.com/Goto50002.aspx</link><description>&lt;p&gt;Purging JAMS history should be completely automated.  When JAMS is initially installed, a job named JAMS_PURGE is created which is scheduled to run every Sunday.  This job purges the JAMS History and then does a CONVERT/RECLAIM on the HIST.DAT file to reclaim space from the deleted records.&lt;/p&gt;&lt;p&gt;You should verify that the JAMS_PURGE job is successfully running.&lt;/p&gt;&lt;p&gt;If JAMS_PURGE is running, it could be that you're keeping more history than you want.  You can adjust the default values for the parameters to JAMS_PURGE to change the amount of history you keep.&lt;/p&gt;&lt;p&gt;It could also be that the HIST.DAT file grew so large because of an unusual event and the file is mostly free space.  The JAMS_PURGE job won't shrink the physical size of the file.  To shrink the file while preserving the history, do this:&lt;/p&gt;&lt;p&gt;&lt;font face="Courier New"&gt;$ MCR JAMS_EXE:JAMS_MASTER STOP SCHEDULE/NORESTART&lt;br /&gt;$ SET DEFAULT JAMS_DATA:&lt;br /&gt;$ ANALYZE/RMS/FDL/OUTPUT=HISTOPT.FDL HIST.DAT&lt;br /&gt;$ EDIT/FDL/NOINTERACTIVE/ANALYSIS=HISTOPT.FDL HISTOPT.FDL&lt;br /&gt;$ CONVERT/FDL=HISTOPT.FDL/STATS/NOSORT HIST.DAT HIST.DAT&lt;br /&gt;$ PURGE HIST.DAT&lt;br /&gt;$ MCR JAMS_EXE:JAMS_MASTER START SCHEDULE&lt;/font&gt;&lt;/p&gt;&lt;p&gt;Note that this make take a LONG time.&lt;/p&gt;&lt;p&gt;If you don't really care about the history and you just want to quickly shrink the file, do this:&lt;/p&gt;&lt;p&gt;&lt;font face="Courier New"&gt;$ MCR JAMS_EXE:JAMS_MASTER STOP SCHEDULE/NORESTART&lt;br /&gt;$ SET DEFAULT JAMS_DATA:&lt;br /&gt;$ DELETE HIST.DAT;*&lt;br /&gt;$ CREATE/FDL=HIST.FDL HIST.DAT&lt;br /&gt;$ MCR JAMS_EXE:JAMS_MASTER START SCHEDULE&lt;/font&gt;&lt;/p&gt;&lt;p&gt;This is quick but, &lt;strong&gt;IT WILL DELETE ALL OF YOUR HISTORY&lt;/strong&gt;.&lt;br /&gt;&lt;/p&gt;</description><pubDate>Mon, 25 Aug 2008 10:40:48 GMT</pubDate><dc:creator>JohnV</dc:creator></item></channel></rss>