<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Running a job in a Connect session in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Running-a-job-in-a-Connect-session/m-p/150779#M298023</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried the following in PC SAS, but it did not work.&amp;nbsp; Please give me a sample PC SAS program that runs a mainframe job.&amp;nbsp; Thanks.&amp;nbsp; -- Warren&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Helv;"&gt;%let cs2=mvsw.sysplex.bns;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* macro cs2 points to site 2 */&lt;BR /&gt;signon cs2.spaw820 user=_prompt_;&amp;nbsp;&amp;nbsp; /* command to connect to cs2&amp;nbsp; */&lt;BR /&gt;rsubmit;&lt;BR /&gt;x " SUBMIT VQ487.VQ3.PRG(CONTENT)";&lt;BR /&gt;endrsubmit;&lt;BR /&gt;signoff cs2.spaw820;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* command to disconnect cs2&amp;nbsp; */&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Aug 2014 17:52:42 GMT</pubDate>
    <dc:creator>Warren</dc:creator>
    <dc:date>2014-08-21T17:52:42Z</dc:date>
    <item>
      <title>Running a job in a Connect session</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-a-job-in-a-Connect-session/m-p/150776#M298020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a little problem and I'm hoping someone will be able to figure out the ins and outs of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I run a job on a z/OS mainframe via a Spawner and SAS/Connect.&amp;nbsp; The batch job runs for a long time and the&lt;/P&gt;&lt;P&gt;Connect session times out before the job has completed.&amp;nbsp; I have requested that the timeout interval be increased&lt;/P&gt;&lt;P&gt;but that is not likely.&amp;nbsp; I have also tuned the job to the max so it runs as quickly as I can make it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From what I can see, the job completes the DATA step that it is in - which is to read a very large VSAM dataset&lt;/P&gt;&lt;P&gt;and select a number of records, and stores this in a catalogued SAS dataset on the mainframe.&amp;nbsp; It look like this&lt;/P&gt;&lt;P&gt;is where the job dies because a subsequent DATA step does not get run.&amp;nbsp; I would like to know if there is a way&lt;/P&gt;&lt;P&gt;to get the subsequent step to run (ie: get the job to run to the end) before it dies?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, I would like to be able to submit the job via remote submit through the Spawner and then go about&lt;/P&gt;&lt;P&gt;my business and wait for the job to complete, even if the connection times out.&amp;nbsp; Then I can sign on to the mainframe&lt;/P&gt;&lt;P&gt;and download the file knowing it was created successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 18:17:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-a-job-in-a-Connect-session/m-p/150776#M298020</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2014-06-20T18:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: Running a job in a Connect session</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-a-job-in-a-Connect-session/m-p/150777#M298021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OS2,&lt;/P&gt;&lt;P&gt;I don't recall all the requirements however 14 years ago and prior, I would store the code on the mainframe and remote submit the mainframe code through a mainframe session.&amp;nbsp; Then, if the PC connection to the Mainframe was lost, the Mainframe job was still running.&amp;nbsp; The last time I ran similar code, I had the code stored on the PC, uploaded the code to a mainframe library, then used the remote mainframe session to submit the uploaded code.&amp;nbsp; The PC SAS administrators were happy because I would log out of my PC SAS session when I left for home.&amp;nbsp; The mainframe SAS job ran all night because there were no governors in place on how long a mainframe SAS session could be up and running.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Back then it was possible to use the PC SAS session to open a mainframe SAS session so that I had a PC Session and a Mainframe session running simutaneously. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 18:29:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-a-job-in-a-Connect-session/m-p/150777#M298021</guid>
      <dc:creator>jwillis</dc:creator>
      <dc:date>2014-06-20T18:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Running a job in a Connect session</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-a-job-in-a-Connect-session/m-p/150778#M298022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;That is very like what I am doing - the actual SAS code lives on the mainframe and I just run a Connect session to "kick it off".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that as soon as the mainframe SAS program ends a data step, it tries to communicate back to the local session,&lt;/P&gt;&lt;P&gt;and since the communication has timed out at they point, the attempt is unsuccessful and the program ends.&amp;nbsp;&amp;nbsp; My difficulty&lt;/P&gt;&lt;P&gt;is finding a way to get the mainframe job to run to the end.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 18:51:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-a-job-in-a-Connect-session/m-p/150778#M298022</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2014-06-20T18:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Running a job in a Connect session</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-a-job-in-a-Connect-session/m-p/150779#M298023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried the following in PC SAS, but it did not work.&amp;nbsp; Please give me a sample PC SAS program that runs a mainframe job.&amp;nbsp; Thanks.&amp;nbsp; -- Warren&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Helv;"&gt;%let cs2=mvsw.sysplex.bns;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* macro cs2 points to site 2 */&lt;BR /&gt;signon cs2.spaw820 user=_prompt_;&amp;nbsp;&amp;nbsp; /* command to connect to cs2&amp;nbsp; */&lt;BR /&gt;rsubmit;&lt;BR /&gt;x " SUBMIT VQ487.VQ3.PRG(CONTENT)";&lt;BR /&gt;endrsubmit;&lt;BR /&gt;signoff cs2.spaw820;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* command to disconnect cs2&amp;nbsp; */&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 17:52:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-a-job-in-a-Connect-session/m-p/150779#M298023</guid>
      <dc:creator>Warren</dc:creator>
      <dc:date>2014-08-21T17:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Running a job in a Connect session</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-a-job-in-a-Connect-session/m-p/150780#M298024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Warren:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you are using looks very familiar - you wouldn't be working at a large Canadian bank would you?&amp;nbsp; A red one?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I'm the person who installed the spawner there....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 18:17:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-a-job-in-a-Connect-session/m-p/150780#M298024</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2014-08-21T18:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Running a job in a Connect session</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-a-job-in-a-Connect-session/m-p/150781#M298025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are right, are you Bruce?&amp;nbsp; Please give me a sample program.&amp;nbsp; Thanks.&amp;nbsp; -- Warren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 18:26:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-a-job-in-a-Connect-session/m-p/150781#M298025</guid>
      <dc:creator>Warren</dc:creator>
      <dc:date>2014-08-21T18:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: Running a job in a Connect session</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-a-job-in-a-Connect-session/m-p/150782#M298026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Warren:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not Bruce, but I know him&amp;nbsp; - I'm no longer with bns.... (as is he).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your code looks mostly correct - what error message are you getting?&amp;nbsp;&amp;nbsp; It may have something to do with the quoted string you are submitting to the&lt;/P&gt;&lt;P&gt;internal reader.&amp;nbsp; I may have to do with the way the Spawner is started on the mainframe.&amp;nbsp; Also - what version of SAS are you running (on the mainframe)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 18:31:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-a-job-in-a-Connect-session/m-p/150782#M298026</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2014-08-21T18:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Running a job in a Connect session</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-a-job-in-a-Connect-session/m-p/150783#M298027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't get an error.&amp;nbsp; I even added the quotes as follows.&lt;/P&gt;&lt;P&gt;x " SUBMIT 'VQ487.VQ3.PRG(CONTENT)' "&lt;/P&gt;&lt;P&gt;I'm running 8.2 on the mainframe, but I can also easily change it to 9.2 by using the following.&lt;/P&gt;&lt;P&gt;//STEP1&amp;nbsp;&amp;nbsp; EXEC SAS9&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 18:40:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-a-job-in-a-Connect-session/m-p/150783#M298027</guid>
      <dc:creator>Warren</dc:creator>
      <dc:date>2014-08-21T18:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Running a job in a Connect session</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-a-job-in-a-Connect-session/m-p/150784#M298028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Warren:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace the "X" command in your code with this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tso sas input('''VQ487.VQ3.PRG(CONTENT)'''); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the "sas" is the name of the sas exec on your z/OS system - which, if I remember is actually just "sas" unless \&lt;/P&gt;&lt;P&gt;someone has changed it from what I remember.&amp;nbsp; Let me know what happens - if this won't work there is a very&lt;/P&gt;&lt;P&gt;complicated fix.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 18:44:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-a-job-in-a-Connect-session/m-p/150784#M298028</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2014-08-21T18:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: Running a job in a Connect session</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-a-job-in-a-Connect-session/m-p/150785#M298029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This doesn't work.&amp;nbsp; I got no error messages, but I also could not find any evidence that the program was submitted for mainframe execution.&lt;/P&gt;&lt;P&gt;Below is my PC SAS code.&amp;nbsp; Please advise. Thanks.&amp;nbsp; -- Warren&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let cs2=mvsw.sysplex.bns;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* macro cs2 points to site 2 */&lt;/P&gt;&lt;P&gt;signon cs2.spaw820 user=_prompt_;&amp;nbsp;&amp;nbsp; /* command to connect to cs2&amp;nbsp; */&lt;/P&gt;&lt;P&gt;rsubmit;&lt;/P&gt;&lt;P&gt;tso sas input("VQ487.VQ3.PRG(CONTENT)");&lt;/P&gt;&lt;P&gt;endrsubmit;&lt;/P&gt;&lt;P&gt;signoff cs2.spaw820;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* command to disconnect cs2&amp;nbsp; */&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 18:53:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-a-job-in-a-Connect-session/m-p/150785#M298029</guid>
      <dc:creator>Warren</dc:creator>
      <dc:date>2014-08-21T18:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: Running a job in a Connect session</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-a-job-in-a-Connect-session/m-p/150786#M298030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd really want this to work so that eventually, I can schedule mainframe jobs using PC SAS.&amp;nbsp; Thanks.&amp;nbsp; -- Warren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 19:00:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-a-job-in-a-Connect-session/m-p/150786#M298030</guid>
      <dc:creator>Warren</dc:creator>
      <dc:date>2014-08-21T19:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: Running a job in a Connect session</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-a-job-in-a-Connect-session/m-p/150787#M298031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Warren:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like you have the same problem as I do.&amp;nbsp; The Spawner is not "authorized" on the z/OS box to&lt;/P&gt;&lt;P&gt;issue commands - such as a TSO SUBMIT or a "X" command - which is really the same thing.&amp;nbsp; If you&lt;/P&gt;&lt;P&gt;have access to the Spawner log you should be able to see this (or know someone who has access...).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fix is quite complicated because you need to change the script that the Spawner runs (it is a task&lt;/P&gt;&lt;P&gt;that is really run in UNIX on the z/OS box).&amp;nbsp; SAS and IBM provide a download of the new command that&lt;/P&gt;&lt;P&gt;you can run via the Spawner so that it is "authorized" to do the submit.&amp;nbsp; Not sure how you would go about&lt;/P&gt;&lt;P&gt;getting this changed because it took me 18 months just to get the Spawner up and running in the first place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another option is the use FTP to get the file from your local session to the mainframe and submit it to the&lt;/P&gt;&lt;P&gt;interal reader, but this may also not work (it doesn't work for me here) also. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest that you check the Spawner log first to see what the error is forst and proceed from there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would happen to be the Warren that went on the Year 2000 COBOL programming course a long&lt;/P&gt;&lt;P&gt;time ago at the DELL building at Cummer and the 404 are you?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 19:02:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-a-job-in-a-Connect-session/m-p/150787#M298031</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2014-08-21T19:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Running a job in a Connect session</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-a-job-in-a-Connect-session/m-p/150788#M298032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;About 10 years ago I had to run a lot of jobs to transform some old mainframe SAS data.&lt;/P&gt;&lt;P&gt;I was able to generate the jobs and submit them to the system using an FTP interface to the JOB stream.&lt;/P&gt;&lt;P&gt;It was like using a card deck from the 80's, only instead of physical cards I used SAS to punch the cards &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 19:02:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-a-job-in-a-Connect-session/m-p/150788#M298032</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-08-21T19:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Running a job in a Connect session</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-a-job-in-a-Connect-session/m-p/150789#M298033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Warren:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is another method that works but it does not use the Spawner - we use it here all the time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will look up the details.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 19:03:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-a-job-in-a-Connect-session/m-p/150789#M298033</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2014-08-21T19:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Running a job in a Connect session</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-a-job-in-a-Connect-session/m-p/150790#M298034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I don't remember going to the Year 2000 COBOL programming course, even though I was using COBOL at that time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 19:07:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-a-job-in-a-Connect-session/m-p/150790#M298034</guid>
      <dc:creator>Warren</dc:creator>
      <dc:date>2014-08-21T19:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Running a job in a Connect session</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-a-job-in-a-Connect-session/m-p/150791#M298035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Warren,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Damn - thought you might be someone I know back in the day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyhow - what you need to do is connect to the mainframe using the "old" - non spawner way and then you can submit&lt;/P&gt;&lt;P&gt;batch jobs to the system at will.&amp;nbsp; I'm assuming that you have SAS on your desktop (laptop?) correct?&amp;nbsp; Then you need to do....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%let a=%ip.address.of.mainframe%;&lt;/P&gt;&lt;P&gt;filename rlink 'c:\sas\source\scripts\tsocmsip.scr';&amp;nbsp; *or wherever the scripts are*;&lt;/P&gt;&lt;P&gt;%let remote=a;&lt;/P&gt;&lt;P&gt;options remote=&amp;amp;remote comamid= tcp set=tcpnt3270 1;&lt;/P&gt;&lt;P&gt;signon;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need the IP of the mainframe box you want to connect to and the location of the script file which is somewhere on your&lt;/P&gt;&lt;P&gt;PC in the SAS installation.&amp;nbsp; This will do a TN3270 connection to the mainframe which is slower than using the Spawner and&lt;/P&gt;&lt;P&gt;you need to use your TSO credentials to sign on.&amp;nbsp; Also - you can only have 1 session open at a time.&amp;nbsp; And you may need to&lt;/P&gt;&lt;P&gt;customize the script to suit your own environment (I don't have mine any more but I do have the TSO sign on code....)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give it a try and let me know what happens.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 19:17:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-a-job-in-a-Connect-session/m-p/150791#M298035</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2014-08-21T19:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: Running a job in a Connect session</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-a-job-in-a-Connect-session/m-p/150792#M298036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why do you ran that in synchronous mode switch it to asynchronous mode.&amp;nbsp; "Options noconnectwait ; " &lt;A href="http://support.sas.com/documentation/cdl/en/connref/61908/HTML/default/viewer.htm#cwait.htm" title="http://support.sas.com/documentation/cdl/en/connref/61908/HTML/default/viewer.htm#cwait.htm"&gt;SAS/CONNECT(R) 9.2 User's Guide&lt;/A&gt; Using the spawner (unix-servers BPXAS address space) with all advantages.&amp;nbsp; The effect will be there is No polling to you desktop and the detached process will run until it is ready. Then it can verify the existence of your machine at the end. It is possible&amp;nbsp; the system&amp;nbsp; will detect the tcp-ip session got broken because no traffic is seen.&lt;BR /&gt;Better leave your machine on and running. Hoping routers will not kill your session. When that happens you need a newer SAS release supporting the session keep alive option&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Multitasking....&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;It is something of the big promoted advantages when moving from DOS 3.3 trying to run &lt;A href="mailto:OS/2@OS"&gt;OS/2 &lt;/A&gt; session-manager dialogmanager NT. You are better of with W7.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 20:11:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-a-job-in-a-Connect-session/m-p/150792#M298036</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-08-21T20:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: Running a job in a Connect session</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-a-job-in-a-Connect-session/m-p/150793#M298037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jaap:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, it is the task that is run by the Spawner that is the issue as per &lt;A href="http://support.sas.com/kb/40/451.html" title="http://support.sas.com/kb/40/451.html"&gt;40451 - Enabling the use of authorized TSO commands for SAS® 9.2 spawners in the z/OS operating environment&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The environment that Warren is talking about I set up about 10 years ago and I know that it is not running the authorized UNIX command so he is boned there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully, using a TN3270 - type session will work for him as well as it works for us.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 12:03:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-a-job-in-a-Connect-session/m-p/150793#M298037</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2014-08-22T12:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: Running a job in a Connect session</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-a-job-in-a-Connect-session/m-p/150794#M298038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OS/2 that is along time ago indeed. If he is using a SAS/connect session and has started that by the TN3270 method. My remarks about synchronous/asynchronous still holds. &lt;BR /&gt;The TN3270 method is starting almost the same as using the Spawner.&amp;nbsp; It replies with a portnumber line mode in the screen to be captured by sas. After that it is port/port communication.&lt;BR /&gt;10 yrs that was the time IBM used the TCP/IP stack delivered by SAS. The WSA (Work Station Agent) in TSO was an attempt of IBM to run TSO client/server using that.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 12:29:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-a-job-in-a-Connect-session/m-p/150794#M298038</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-08-22T12:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: Running a job in a Connect session</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-a-job-in-a-Connect-session/m-p/150795#M298039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way things were working there, I doubt that there have been any changes to the Spawner since first installed.&amp;nbsp; We have been using&lt;/P&gt;&lt;P&gt;the TN3270 connection where I am now for the past 8 years because the mainframe people would not install a Spawner no matter how much&lt;/P&gt;&lt;P&gt;we begged them.&amp;nbsp; Finally got it last this past November and found this issue with submitting batch jobs to the mainframe.&amp;nbsp; Now we have to&lt;/P&gt;&lt;P&gt;retain the TN3270 session for the batch jobs and the Spawner for just about everything else.&amp;nbsp; One step at a time.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 13:07:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-a-job-in-a-Connect-session/m-p/150795#M298039</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2014-08-22T13:07:52Z</dc:date>
    </item>
  </channel>
</rss>

