<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;CUQDQHo9eCp7ImA9WhRaFEk.&quot;"><id>tag:blogger.com,1999:blog-4849874382941987511</id><updated>2012-02-16T17:49:31.460-08:00</updated><category term="REXX" /><category term="JCL" /><category term="Attachmate Extra Macro" /><category term="JES" /><category term="FTP" /><title>z/OS @ Digital Space</title><subtitle type="html">How-tos, tutorials, tips and tricks for the z/OS operating system.</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://zos.digitalsp.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://zos.digitalsp.com/" /><author><name>Riaan</name><uri>http://www.blogger.com/profile/12401433017446339497</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="27" height="32" src="http://3.bp.blogspot.com/_DrjM_l2eDa8/Sn97TSFcOgI/AAAAAAAATE0/rf1_W8TvLto/S220/fbcb6612.jpg" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/Z/osDigitalSpace" /><feedburner:info uri="z/osdigitalspace" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>Z/osDigitalSpace</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><entry gd:etag="W/&quot;D0ECRHc8eSp7ImA9WxNTF0w.&quot;"><id>tag:blogger.com,1999:blog-4849874382941987511.post-2225877632005113263</id><published>2009-08-19T13:59:00.000-07:00</published><updated>2009-08-19T14:01:05.971-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-08-19T14:01:05.971-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="FTP" /><title>Download file from mainframe with FTP using HTML application</title><content type="html">This is a HTML application that uses VBScript and the Windows DOS ftp command to download a file from the mainframe. Very handy for files that you have to download on a daily basis. You can customize the code (it is all in text) and download multiple files or change it to upload. Although I use it to download files from the mainframe you can use it for any FTP server.&lt;br /&gt;
&lt;br /&gt;
What you need to do:&lt;br /&gt;
- Cut and save the code below and save it on your desktop.Give the file a .HTA file extension.&lt;br /&gt;
- Edit the code with notepad and change the DNS server addresses for your FTP servers.&lt;br /&gt;
&lt;br /&gt;
To execute simple double click on the .HTA file. This will open with Internet Exploder (sorry Explorer). You can then supply your mainframe z/OS user id and password. Specify your file name in the box(without quotes) and click download. The file will be downloaded to your desktop.&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&amp;lt;head&amp;gt;

&amp;lt;title&amp;gt;Mainframe Transfer FTP&amp;lt;/title&amp;gt;

&amp;lt;HTA:APPLICATION 

     APPLICATIONNAME=&amp;quot;MF FTP xfr&amp;quot;

     SCROLL=&amp;quot;yes&amp;quot;

     SINGLEINSTANCE=&amp;quot;yes&amp;quot;

     WINDOWSTATE=&amp;quot;normal&amp;quot;

&amp;gt;

&amp;lt;/head&amp;gt;



&amp;lt;script language=&amp;quot;VBScript&amp;quot;&amp;gt;

Sub TestSub



Dim FSO, WS, ftpServer, username, password, ftpFile1,ftpFile2, putType, NewFile, Target

    Set FSO = CreateObject(&amp;quot;Scripting.FileSystemObject&amp;quot;)

    Set WS = CreateObject(&amp;quot;WScript.Shell&amp;quot;)

    ftpServer = Environment.value

    username = MFUser.value

    password = MFPass.value

    ftpFile1  = &amp;quot;&amp;#39;&amp;quot; &amp;amp; MFName1.value &amp;amp; &amp;quot;&amp;#39;&amp;quot;

    putType = &amp;quot;asci&amp;quot;

    Target = &amp;quot;C:\TEMP_FTP.txt&amp;quot;





If (FSO.FileExists(Target)) Then

   FSO.DeleteFile(Target)

   Set NewFile = FSO.OpenTextFile(Target, 2, &amp;quot;True&amp;quot;)

Else

   Set NewFile = FSO.OpenTextFile(Target, 2, &amp;quot;True&amp;quot;)

End If



NewFile.WriteLine &amp;quot;open &amp;quot; &amp;amp; ftpServer

NewFile.WriteLine username

NewFile.WriteLine password

NewFile.WriteLine putType

NewFile.WriteLine &amp;quot;get &amp;quot; &amp;amp; ftpFile1 &amp;amp; &amp;quot; FILE.TXT&amp;quot;

NewFile.WriteLine &amp;quot;close&amp;quot;

NewFile.WriteLine &amp;quot;bye&amp;quot;

NewFile.Close()



WS.Run &amp;quot;cmd /k ftp -s:&amp;quot; &amp;amp; Target,1,true



FSO.DeleteFile(Target)



    End Sub

&amp;lt;/script&amp;gt;



&amp;lt;body&amp;gt;



&amp;lt;p&amp;gt;

&amp;lt;table&amp;gt;

&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Environment:&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;select size=&amp;quot;1&amp;quot; name=&amp;quot;Environment&amp;quot;&amp;gt;

    &amp;lt;option selected value=&amp;quot;unit.somewhere.com&amp;quot;&amp;gt;Unit&amp;lt;/option&amp;gt;

    &amp;lt;option value=&amp;quot;it.somewhere.com&amp;quot;&amp;gt;Integration&amp;lt;/option&amp;gt;

    &amp;lt;option value=&amp;quot;uat.somewhere.com&amp;quot;&amp;gt;User Acceptance&amp;lt;/option&amp;gt;

    &amp;lt;option value=&amp;quot;prod.somewhere.com&amp;quot;&amp;gt;Production&amp;lt;/option&amp;gt;

&amp;lt;/select&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;

&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Mainframe User-Id:&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;MFUser&amp;quot; size=&amp;quot;8&amp;quot;&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;

&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Mainframe Password:&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;input type=&amp;quot;password&amp;quot; name=&amp;quot;MFPass&amp;quot; size=&amp;quot;8&amp;quot;&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;

&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Mainframe Dataset:&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;MFName1&amp;quot; size=&amp;quot;50&amp;quot;&amp;gt;File&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;

&amp;lt;/table&amp;gt;&amp;lt;/p&amp;gt;

&amp;lt;input type=&amp;quot;button&amp;quot; value=&amp;quot;Download from Mainframe&amp;quot; name=&amp;quot;run_button&amp;quot;  onClick=&amp;quot;TestSub&amp;quot;&amp;gt;&amp;lt;p&amp;gt; 



&amp;lt;/body&amp;gt;
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4849874382941987511-2225877632005113263?l=zos.digitalsp.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?a=x92Q3M2MgTM:oLoCz-OpWbk:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?a=x92Q3M2MgTM:oLoCz-OpWbk:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?a=x92Q3M2MgTM:oLoCz-OpWbk:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?i=x92Q3M2MgTM:oLoCz-OpWbk:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?a=x92Q3M2MgTM:oLoCz-OpWbk:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?i=x92Q3M2MgTM:oLoCz-OpWbk:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?a=x92Q3M2MgTM:oLoCz-OpWbk:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?a=x92Q3M2MgTM:oLoCz-OpWbk:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?i=x92Q3M2MgTM:oLoCz-OpWbk:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?a=x92Q3M2MgTM:oLoCz-OpWbk:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?a=x92Q3M2MgTM:oLoCz-OpWbk:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?i=x92Q3M2MgTM:oLoCz-OpWbk:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?a=x92Q3M2MgTM:oLoCz-OpWbk:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Z/osDigitalSpace/~4/x92Q3M2MgTM" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4849874382941987511/posts/default/2225877632005113263?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4849874382941987511/posts/default/2225877632005113263?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Z/osDigitalSpace/~3/x92Q3M2MgTM/download-file-from-mainframe-with-ftp.html" title="Download file from mainframe with FTP using HTML application" /><author><name>Riaan</name><uri>http://www.blogger.com/profile/12401433017446339497</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="27" height="32" src="http://3.bp.blogspot.com/_DrjM_l2eDa8/Sn97TSFcOgI/AAAAAAAATE0/rf1_W8TvLto/S220/fbcb6612.jpg" /></author><feedburner:origLink>http://zos.digitalsp.com/2009/08/download-file-from-mainframe-with-ftp.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEYHQX0ycCp7ImA9WxNTFkk.&quot;"><id>tag:blogger.com,1999:blog-4849874382941987511.post-4944119661037590882</id><published>2009-08-18T18:42:00.000-07:00</published><updated>2009-08-18T18:42:10.398-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-08-18T18:42:10.398-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Attachmate Extra Macro" /><title>Attachmate Extra Macro to transfer a PDS member to Microsoft Word.</title><content type="html">If you are in editing, browsing or viewing a file in ISPF you can transfer the  contents of the member to Windows with an Attachmate Extra macro.&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&amp;#39;--------------------------------------------------------------------------------
&amp;#39; Macro:        winwordtrans.EBM
&amp;#39;
&amp;#39; Description:  This macro retrieves a filename from the edit / browse screen
&amp;#39;               and then transfers the file to the PC. After the transfer Microsoft Word
&amp;#39;               is opened with the transfered file.
&amp;#39;
Global g_HostSettleTime%

Sub Main()

&amp;#39;--------------------------------------------------------------------------------
&amp;#39; Get the main system object
 Dim Sessions As Object
 Dim System As Object
 Set System = CreateObject(&amp;quot;EXTRA.System&amp;quot;) &amp;#39; Gets the system object
 If (System is Nothing) Then
  Msgbox &amp;quot;Could not create the EXTRA System object.  Stopping macro playback.&amp;quot;
  STOP
 End If
 Set Sessions = System.Sessions

 If (Sessions is Nothing) Then
  Msgbox &amp;quot;Could not create the Sessions collection object.  Stopping macro playback.&amp;quot;
  STOP
 End If
&amp;#39;--------------------------------------------------------------------------------
&amp;#39; Set the default wait timeout value
 g_HostSettleTime = 1500  &amp;#39; milliseconds

 OldSystemTimeout&amp;amp; = System.TimeoutValue
 If (g_HostSettleTime &amp;gt; OldSystemTimeout) Then
  System.TimeoutValue = g_HostSettleTime
 End If

&amp;#39; Get the necessary Session Object
 Dim Sess0 As Object
 Set Sess0 = System.ActiveSession
 If (Sess0 is Nothing) Then
  Msgbox &amp;quot;Could not create the Session object.  Stopping macro playback.&amp;quot;
  STOP
 End If
 If Not Sess0.Visible Then Sess0.Visible = TRUE
&amp;#39; Sess0.Screen.WaitHostQuiet(g_HostSettleTime)
 
&amp;#39; This section will check if the screen is locked and ask for a password

        szString = Sess0.Screen.GetString(8,26,15)
        if (szString = &amp;quot;TERMINAL LOCKED&amp;quot;) Then
            Dim szPassword
            szPassword=PasswordBox(&amp;quot;Enter your TPX password:&amp;quot;,&amp;quot;Your terminal is locked&amp;quot;)
            Sess0.Screen.Sendkeys(&amp;quot;&amp;lt;Home&amp;gt;&amp;quot;   szPassword   &amp;quot;&amp;lt;Enter&amp;gt;&amp;quot;) 
            Sess0.Screen.WaitHostQuiet(g_HostSettleTime)
        End If

        Dim MyArea As Object, MyArea2 As Object

&amp;#39; Check if the USER made a selection
        szString = Sess0.Screen.Selection
        szString = Trim(szString)
        If (szString &amp;lt;&amp;gt; &amp;quot;&amp;quot;) Then
            GoTo Transfer:
        End If
        
        Sess0.Screen.MoveTo 1, 1
        Set MyArea = Sess0.Screen.Search(&amp;quot;Command ===&amp;gt;&amp;quot;)
        If (MyArea.Top = -1) Then
            msgbox(&amp;quot;Could not find Command ===&amp;gt;&amp;quot;)
            exit sub
        End If

        Sess0.Screen.MoveTo MyArea.Bottom - 1, MyArea.Left
        
        szString = Sess0.Screen.GetString(Sess0.Screen.Row,Sess0.Screen.Col,10)
        szString = Trim(szString)
       
        Select Case szString
        Case &amp;quot;SDSF BROWS&amp;quot;
            msgbox(&amp;quot;This script does not support SDSF BROWSE, yet.&amp;quot;)
            exit sub
        Case &amp;quot;SDSF EDIT&amp;quot;
            msgbox(&amp;quot;This script does not support SDSF EDIT, yet.&amp;quot;)
            exit sub
        Case &amp;quot;BROWSE&amp;quot;
            spos = 10
        Case &amp;quot;EDIT&amp;quot;
            spos = 11
        Case &amp;quot;VIEW&amp;quot;
            spos = 11
        Case Else
            leftString = Left(szString,4)
            If (leftString = &amp;quot;EDIT&amp;quot;) Then
                spos = 09
            Else
                msgbox(&amp;quot;This script does not support this screen.&amp;quot;)
                exit sub
            End If
        End Select

        Sess0.Screen.MoveTo Sess0.Screen.Row, Sess0.Screen.Col   spos
        Set MyArea = Sess0.Screen.Search(&amp;quot; &amp;quot;,Sess0.Screen.Row,Sess0.Screen.Col)
        If (MyArea.Top = -1) Then
            msgbox(&amp;quot;Could not find the end of the filename&amp;quot;)
            exit sub
        End If

        szString = Sess0.Screen.GetString(Sess0.Screen.Row,Sess0.Screen.Col,MyArea.Left - Sess0.Screen.Col)
        szString = Trim(szString)

        pcfString = &amp;quot;c:\text.txt&amp;quot;
                
Transfer:
 Sess0.Screen.Sendkeys(&amp;quot;&amp;lt;Home&amp;gt;&amp;lt;EraseEOF&amp;gt;tsocmd&amp;lt;Enter&amp;gt;&amp;quot;) 
 Sess0.Screen.WaitHostQuiet(g_HostSettleTime)
 
 Sess0.FileTransferScheme = &amp;quot;Text Default&amp;quot; 
 Sess0.FileTransferScheme = &amp;quot;C:\Program Files\E!PC\schemes\Text Default.eis&amp;quot; 
 Sess0.FileTransferHostOS = 1  
 Recv = Sess0.ReceiveFile(pcfString,&amp;quot;&amp;#39;&amp;quot;   szString   &amp;quot;&amp;#39;&amp;quot;)
        If Recv Then 
            hWndCalc% = Shell(&amp;quot;C:\Program Files\Microsoft Office 2003\OFFICE11\WINWORD.EXE &amp;quot;   pcfString, 1)
        Else 
            MsgBox (&amp;quot;Transfer failure. Check that you don&amp;#39;t have &amp;quot;   pcfString   &amp;quot; open in another application. If that is not the case close and reopen extra&amp;quot;)
        End If

 Sess0.Screen.WaitHostQuiet(g_HostSettleTime)
 Sess0.Screen.Sendkeys(&amp;quot;end&amp;lt;Enter&amp;gt;&amp;quot;) 

 System.TimeoutValue = OldSystemTimeout
End Sub
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4849874382941987511-4944119661037590882?l=zos.digitalsp.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?a=XFd20dHwUxg:Uqi8LETkLIk:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?a=XFd20dHwUxg:Uqi8LETkLIk:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?a=XFd20dHwUxg:Uqi8LETkLIk:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?i=XFd20dHwUxg:Uqi8LETkLIk:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?a=XFd20dHwUxg:Uqi8LETkLIk:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?i=XFd20dHwUxg:Uqi8LETkLIk:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?a=XFd20dHwUxg:Uqi8LETkLIk:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?a=XFd20dHwUxg:Uqi8LETkLIk:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?i=XFd20dHwUxg:Uqi8LETkLIk:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?a=XFd20dHwUxg:Uqi8LETkLIk:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?a=XFd20dHwUxg:Uqi8LETkLIk:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?i=XFd20dHwUxg:Uqi8LETkLIk:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?a=XFd20dHwUxg:Uqi8LETkLIk:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Z/osDigitalSpace/~4/XFd20dHwUxg" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4849874382941987511/posts/default/4944119661037590882?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4849874382941987511/posts/default/4944119661037590882?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Z/osDigitalSpace/~3/XFd20dHwUxg/attachmate-extra-macro-to-transfer-pds.html" title="Attachmate Extra Macro to transfer a PDS member to Microsoft Word." /><author><name>Riaan</name><uri>http://www.blogger.com/profile/12401433017446339497</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="27" height="32" src="http://3.bp.blogspot.com/_DrjM_l2eDa8/Sn97TSFcOgI/AAAAAAAATE0/rf1_W8TvLto/S220/fbcb6612.jpg" /></author><feedburner:origLink>http://zos.digitalsp.com/2009/08/attachmate-extra-macro-to-transfer-pds.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D04GRX8-fip7ImA9WxNTFkk.&quot;"><id>tag:blogger.com,1999:blog-4849874382941987511.post-976725681144134980</id><published>2009-08-18T18:35:00.000-07:00</published><updated>2009-08-18T18:38:44.156-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-08-18T18:38:44.156-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="REXX" /><category scheme="http://www.blogger.com/atom/ns#" term="JES" /><title>Executing JES operator commands from inside REXX.</title><content type="html">This particular example takes the job number as input parameter and then issues the cancel command (C=J) to remove the job from JES.&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;/*REXX*/                                           
/*    */                                           
ARG JOBNUM                                         
IF JOBNUM = '' THEN RETURN                         
ADDRESS ISPEXEC                                    
                                                   
SIGNAL ON NOVALUE                                  
ADDRESS TSO                                        
                                                   
  'ALLOC FI(INTRDR) WRITER(INTRDR) SYSOUT(Y) REUSE'
  LIST.1 = '/*$TJ' || JOBNUM || ',C=J'             
  LIST.0 = 1                                       
  'EXECIO * DISKW INTRDR (FINIS STEM LIST.'        
  'FREE FI(INTRDR)'                                
RETURN                                             
&lt;/pre&gt;&lt;br /&gt;
&lt;b&gt;Other examples:&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
Purge Job output: LIST.1 = '/*$PJ' || JOBNUM || ',PURGE'&lt;br /&gt;
Put Job on suspend: LIST.1 = '/*$TJ' || JOBNUM || ',C=S'&lt;br /&gt;
Change Job priority to 6: LIST.1 = '/*$TJ' || JOBNUM || ',P=6'&lt;br /&gt;
&lt;br /&gt;
The example above is using the TSO address space to get things accomplished, but you can also use the MVS address space. The example below will cancel a userid from JES.&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;/* REXX */                                               
ARG ID
ADDRESS TSO 'ALLOCATE F(SUIRDR) SYSOUT(A) WRITER(INTRDR)'
ADDRESS MVS NEWSTACK                                     
QUEUE LEFT("/*$VS,'C U="ID"'",80)                        
QUEUE LEFT("XX  ",80)                                    
QUEUE ''                                                 
ADDRESS MVS 'EXECIO * DISKW SUIRDR (FINIS'               
ADDRESS MVS 'DELSTACK'                                   
ADDRESS TSO 'FREE F(SUIRDR)' 
&lt;/pre&gt;&lt;br /&gt;
&lt;b&gt;Notes:&lt;/b&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;The security at your installation is going to determine if you would be able to execute these commands. &lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;Reference:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="font-family: Courier New,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;List of JES operator commands (IBM reference): &lt;span style="color: blue;"&gt;&lt;u&gt;&lt;a href="http://publib.boulder.ibm.com/infocenter/zos/v1r9/topic/com.ibm.zos.r9.hasa200/has2a270394.htm"&gt;http://publib.boulder.ibm.com/infocenter/zos/v1r9/topic/com.ibm.zos.r9.hasa200/has2a270394.htm&lt;/a&gt;&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&amp;nbsp;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4849874382941987511-976725681144134980?l=zos.digitalsp.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?a=20o4AI_UrQQ:cAyIvjfMZl0:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?a=20o4AI_UrQQ:cAyIvjfMZl0:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?a=20o4AI_UrQQ:cAyIvjfMZl0:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?i=20o4AI_UrQQ:cAyIvjfMZl0:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?a=20o4AI_UrQQ:cAyIvjfMZl0:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?i=20o4AI_UrQQ:cAyIvjfMZl0:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?a=20o4AI_UrQQ:cAyIvjfMZl0:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?a=20o4AI_UrQQ:cAyIvjfMZl0:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?i=20o4AI_UrQQ:cAyIvjfMZl0:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?a=20o4AI_UrQQ:cAyIvjfMZl0:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?a=20o4AI_UrQQ:cAyIvjfMZl0:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?i=20o4AI_UrQQ:cAyIvjfMZl0:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?a=20o4AI_UrQQ:cAyIvjfMZl0:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Z/osDigitalSpace/~4/20o4AI_UrQQ" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4849874382941987511/posts/default/976725681144134980?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4849874382941987511/posts/default/976725681144134980?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Z/osDigitalSpace/~3/20o4AI_UrQQ/executing-jes-operator-commands-from.html" title="Executing JES operator commands from inside REXX." /><author><name>Riaan</name><uri>http://www.blogger.com/profile/12401433017446339497</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="27" height="32" src="http://3.bp.blogspot.com/_DrjM_l2eDa8/Sn97TSFcOgI/AAAAAAAATE0/rf1_W8TvLto/S220/fbcb6612.jpg" /></author><feedburner:origLink>http://zos.digitalsp.com/2009/08/executing-jes-operator-commands-from.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkUMSHY5cCp7ImA9WxNTFUs.&quot;"><id>tag:blogger.com,1999:blog-4849874382941987511.post-7411972582957700367</id><published>2009-08-17T18:47:00.000-07:00</published><updated>2009-08-17T18:51:29.828-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-08-17T18:51:29.828-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="FTP" /><category scheme="http://www.blogger.com/atom/ns#" term="JCL" /><title>Connect to FTP server with JCL</title><content type="html">Connecting to a remote server with &lt;a href="http://en.wikipedia.org/wiki/Job_Control_Language"&gt;JCL&lt;/a&gt; involves executing the program &lt;a href="http://en.wikipedia.org/wiki/FTP"&gt;FTP&lt;/a&gt; and passing regular FTP commands in the INPUT dd statement. Output from FTP will be printed in the OUTPUT dd statement.&lt;br /&gt;
&lt;br /&gt;
&lt;pre style="background-color: #fff2cc;"&gt;//USERID1 JOB (X9999),'FTP',&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CLASS=U,MSGCLASS=X&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;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;
//P001&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXEC PGM=FTP,PARM='(EXIT',REGION=2048K&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
//INPUT&amp;nbsp;&amp;nbsp;&amp;nbsp; DD *&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;&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;&amp;nbsp;&amp;nbsp; &amp;nbsp;
&lt;b&gt;192.168.1.150
remoteid &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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
remotepasswd
asci&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;&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;&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;
CD x-drive&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;
PUT 'SYS1.SOME.FILE.ON.MAINF'&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;
QUIT&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;&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;&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;&lt;/b&gt;
//OUTPUT&amp;nbsp;&amp;nbsp; DD SYSOUT=*&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;
//SYSPRINT DD SYSOUT=*&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/pre&gt;&lt;br /&gt;
The FTP commands available to you will depend on the remote server's abilities. There are a lot more commands available in the z/OS FTP server than typical Linux or Windows FTP server.&lt;br /&gt;
&lt;h3&gt;Common FTP Commands&lt;/h3&gt;&lt;br /&gt;
&lt;table border="1"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;th align="LEFT"&gt;&lt;tt&gt;?&lt;/tt&gt;  &lt;/th&gt;&lt;td colspan="2"&gt;&lt;i&gt;to request &lt;tt&gt;help&lt;/tt&gt; or information about the   FTP commands&lt;/i&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt; &lt;th align="LEFT"&gt;&lt;tt&gt;ascii&lt;/tt&gt;  &lt;/th&gt;&lt;td colspan="2"&gt;&lt;i&gt;to set the mode of file transfer to ASCII   &lt;br /&gt;
(this is   the default and transmits seven bits per character)&lt;/i&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt; &lt;th align="LEFT"&gt;&lt;tt&gt;binary&lt;/tt&gt;  &lt;/th&gt;&lt;td colspan="2"&gt;&lt;i&gt;to set the mode of file transfer to binary   &lt;br /&gt;
(the   binary mode transmits all eight bits per byte and thus   provides less chance of a transmission error and must be   used to transmit files other than ASCII files)&lt;/i&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt; &lt;th align="LEFT"&gt;&lt;tt&gt;bye&lt;/tt&gt;  &lt;/th&gt;&lt;td colspan="2"&gt;&lt;i&gt;to exit the FTP environment (same as   &lt;tt&gt;quit&lt;/tt&gt;)&lt;/i&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt; &lt;th align="LEFT"&gt;&lt;tt&gt;cd&lt;/tt&gt;  &lt;/th&gt;&lt;td colspan="2"&gt;&lt;i&gt;to change directory on the remote machine&lt;/i&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt; &lt;th align="LEFT"&gt;&lt;tt&gt;close&lt;/tt&gt;  &lt;/th&gt;&lt;td colspan="2"&gt;&lt;i&gt;to terminate a connection with another computer&lt;/i&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;&amp;nbsp;  &lt;/td&gt;&lt;th align="LEFT" nowrap="nowrap"&gt;&lt;tt&gt;close brubeck&lt;/tt&gt;   &lt;/th&gt;&lt;td&gt;closes the current FTP connection with &lt;tt&gt;brubeck&lt;/tt&gt;,   &lt;br /&gt;
&amp;nbsp;  but still leaves you within the FTP environment. &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt; &lt;th align="LEFT"&gt;&lt;tt&gt;delete&lt;/tt&gt;  &lt;/th&gt;&lt;td colspan="2"&gt;&lt;i&gt;to delete (remove) a file in the current remote   directory (same as &lt;tt&gt;rm&lt;/tt&gt; in UNIX)&lt;/i&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt; &lt;th align="LEFT"&gt;&lt;tt&gt;get&lt;/tt&gt;  &lt;/th&gt;&lt;td colspan="2"&gt;&lt;i&gt;to copy one file from the remote machine   to the local machine&lt;/i&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;&amp;nbsp;  &lt;/td&gt;&lt;th align="LEFT" nowrap="nowrap"&gt;&lt;tt&gt;get ABC DEF&lt;/tt&gt;   &lt;/th&gt;&lt;td&gt;copies file &lt;tt&gt;ABC&lt;/tt&gt; in the current remote directory    to (or on top of) a file named &lt;tt&gt;DEF&lt;/tt&gt; in your    current local directory. &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;&amp;nbsp;  &lt;/td&gt;&lt;th align="LEFT" nowrap="nowrap"&gt;&lt;tt&gt;get ABC&lt;/tt&gt;   &lt;/th&gt;&lt;td&gt;copies file &lt;tt&gt;ABC&lt;/tt&gt; in the current remote directory    to (or on top of) a file with the same name,    &lt;tt&gt;ABC&lt;/tt&gt;, in your current local directory. &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt; &lt;th align="LEFT"&gt;&lt;tt&gt;help&lt;/tt&gt;  &lt;/th&gt;&lt;td colspan="2"&gt;&lt;i&gt;to request a list of all available   FTP commands&lt;/i&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt; &lt;th align="LEFT"&gt;&lt;tt&gt;lcd&lt;/tt&gt;  &lt;/th&gt;&lt;td colspan="2"&gt;&lt;i&gt;to change directory on your local machine   (same as UNIX &lt;tt&gt;cd&lt;/tt&gt;)&lt;/i&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt; &lt;th align="LEFT"&gt;&lt;tt&gt;ls&lt;/tt&gt;  &lt;/th&gt;&lt;td colspan="2"&gt;&lt;i&gt;to list the names of the files in the current   remote directory&lt;/i&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt; &lt;th align="LEFT"&gt;&lt;tt&gt;mkdir&lt;/tt&gt;  &lt;/th&gt;&lt;td colspan="2"&gt;&lt;i&gt;to make a new directory within the current   remote directory&lt;/i&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt; &lt;th align="LEFT"&gt;&lt;tt&gt;mget&lt;/tt&gt;  &lt;/th&gt;&lt;td colspan="2"&gt;&lt;i&gt;to copy multiple files from the remote   machine to the local machine;   &lt;br /&gt;
&amp;nbsp; you are prompted for a &lt;tt&gt;y&lt;/tt&gt;/&lt;tt&gt;n&lt;/tt&gt;    answer before transferring each file&lt;/i&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;&amp;nbsp;  &lt;/td&gt;&lt;th align="LEFT" nowrap="nowrap"&gt;&lt;tt&gt;mget *&lt;/tt&gt;   &lt;/th&gt;&lt;td&gt;copies all the files in the current remote directory    to your current local directory, using the same    filenames.  Notice the use of the wild card    character, &lt;tt&gt;*&lt;/tt&gt;. &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt; &lt;th align="LEFT"&gt;&lt;tt&gt;mput&lt;/tt&gt;  &lt;/th&gt;&lt;td colspan="2"&gt;&lt;i&gt;to copy multiple files from the local   machine to the remote machine;   &lt;br /&gt;
&amp;nbsp; you are prompted for a &lt;tt&gt;y&lt;/tt&gt;/&lt;tt&gt;n&lt;/tt&gt;    answer before transferring each file&lt;/i&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt; &lt;th align="LEFT"&gt;&lt;tt&gt;open&lt;/tt&gt;  &lt;/th&gt;&lt;td colspan="2"&gt;&lt;i&gt;to open a connection with another computer&lt;/i&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;&amp;nbsp;  &lt;/td&gt;&lt;th align="LEFT" nowrap="nowrap"&gt;&lt;tt&gt;open brubeck&lt;/tt&gt;   &lt;/th&gt;&lt;td&gt;opens a new FTP connection with &lt;tt&gt;brubeck&lt;/tt&gt;;   &lt;br /&gt;
&amp;nbsp;  you must enter a username and password    for a &lt;tt&gt;brubeck&lt;/tt&gt; account   &lt;br /&gt;
&amp;nbsp;  &amp;nbsp;  &amp;nbsp; (unless it is to be    an anonymous connection). &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt; &lt;th align="LEFT"&gt;&lt;tt&gt;put&lt;/tt&gt;  &lt;/th&gt;&lt;td colspan="2"&gt;&lt;i&gt;to copy one file from the local machine to   the remote machine &lt;/i&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt; &lt;th align="LEFT"&gt;&lt;tt&gt;pwd&lt;/tt&gt;  &lt;/th&gt;&lt;td colspan="2"&gt;&lt;i&gt;to find out the pathname of the current   directory on the remote machine &lt;/i&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt; &lt;th align="LEFT"&gt;&lt;tt&gt;quit&lt;/tt&gt;  &lt;/th&gt;&lt;td colspan="2"&gt;&lt;i&gt;to exit the FTP environment (same as   &lt;tt&gt;bye&lt;/tt&gt;)&lt;/i&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt; &lt;th align="LEFT"&gt;&lt;tt&gt;rmdir&lt;/tt&gt;  &lt;/th&gt;&lt;td colspan="2"&gt;&lt;i&gt;to  to remove (delete) a directory in the   current remote directory &lt;/i&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
There is a nice cheat sheet PDF available from IBM that contains a short list of TCP/IP related commands which you can download &lt;a href="http://www.redbooks.ibm.com/tips/TIPS0091/tips0091.pdf"&gt;here&lt;/a&gt;. A more complete list of commands are available &lt;a href="http://publib16.boulder.ibm.com/doc_link/en_US/a_doc_lib/cmds/aixcmds2/ftp.htm"&gt;here&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Notes:&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;If you transferring files to the mainframe and you are dealing with a large file, best practice would be to preallocate the file in &lt;a href="http://en.wikipedia.org/wiki/ISPF"&gt;ISPF&lt;/a&gt; before transmitting.&lt;/li&gt;
&lt;li&gt;There is usually a FTP server running per &lt;a href="http://en.wikipedia.org/wiki/LPAR"&gt;LPAR&lt;/a&gt; (Logical Partition) and you can use FTP to transfer files between LPARs.&lt;br /&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4849874382941987511-7411972582957700367?l=zos.digitalsp.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?a=DAmPKBxXUkI:aQsgj-W6STE:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?a=DAmPKBxXUkI:aQsgj-W6STE:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?a=DAmPKBxXUkI:aQsgj-W6STE:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?i=DAmPKBxXUkI:aQsgj-W6STE:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?a=DAmPKBxXUkI:aQsgj-W6STE:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?i=DAmPKBxXUkI:aQsgj-W6STE:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?a=DAmPKBxXUkI:aQsgj-W6STE:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?a=DAmPKBxXUkI:aQsgj-W6STE:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?i=DAmPKBxXUkI:aQsgj-W6STE:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?a=DAmPKBxXUkI:aQsgj-W6STE:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?a=DAmPKBxXUkI:aQsgj-W6STE:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?i=DAmPKBxXUkI:aQsgj-W6STE:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?a=DAmPKBxXUkI:aQsgj-W6STE:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Z/osDigitalSpace/~4/DAmPKBxXUkI" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4849874382941987511/posts/default/7411972582957700367?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4849874382941987511/posts/default/7411972582957700367?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Z/osDigitalSpace/~3/DAmPKBxXUkI/connect-to-ftp-server-with-jcl.html" title="Connect to FTP server with JCL" /><author><name>Riaan</name><uri>http://www.blogger.com/profile/12401433017446339497</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="27" height="32" src="http://3.bp.blogspot.com/_DrjM_l2eDa8/Sn97TSFcOgI/AAAAAAAATE0/rf1_W8TvLto/S220/fbcb6612.jpg" /></author><feedburner:origLink>http://zos.digitalsp.com/2009/08/connect-to-ftp-server-with-jcl.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0UCQn8-eCp7ImA9WxNTFEs.&quot;"><id>tag:blogger.com,1999:blog-4849874382941987511.post-9214629227814926248</id><published>2009-08-16T14:07:00.000-07:00</published><updated>2009-08-16T16:27:43.150-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-08-16T16:27:43.150-07:00</app:edited><title>Introduction</title><content type="html">z/OS is a 64-bit operating system for mainframe computers, created by IBM. It is the successor to OS/390, which in turn followed MVS and combined a number of formerly separate, related products. z/OS offers the attributes of modern operating systems but also retains much of the functionality originating in the 1960s and each subsequent decade that is still found in daily use.&lt;br /&gt;
&lt;br /&gt;
This is my daily sandbox where I play with IMS, CICS, REXX, CLIST, ISPF, TSO/E, JCL, CA7, etc.&lt;br /&gt;
&lt;br /&gt;
Like Linux, z/OS has a monolithic kernel. A monolithic kernel is a kernel architecture where the entire operating system is working in the kernel space and alone as supervisor mode. This makes for a fast, secure and efficient OS. There are three types of kernel architectures:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Monolithic (eg. Linux and z/OS)&lt;/li&gt;
&lt;li&gt;Mircrokernel (eg. Windows XP, Vista and 7)&lt;/li&gt;
&lt;li&gt;Hybridkernel (eg. Mac OS X)&lt;br /&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;a href="http://upload.wikimedia.org/wikipedia/commons/d/d0/OS-structure2.svg" title="click here to view a larger picture"&gt;&lt;img alt="photo of different kernel designs" src="http://lh6.ggpht.com/_DrjM_l2eDa8/Soh1-W7ovbI/AAAAAAAATLU/eKcRbQechns/s800/os_arch.png" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4849874382941987511-9214629227814926248?l=zos.digitalsp.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?a=hN_NFd1h32s:CNhTxhFb96E:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?a=hN_NFd1h32s:CNhTxhFb96E:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?a=hN_NFd1h32s:CNhTxhFb96E:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?i=hN_NFd1h32s:CNhTxhFb96E:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?a=hN_NFd1h32s:CNhTxhFb96E:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?i=hN_NFd1h32s:CNhTxhFb96E:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?a=hN_NFd1h32s:CNhTxhFb96E:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?a=hN_NFd1h32s:CNhTxhFb96E:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?i=hN_NFd1h32s:CNhTxhFb96E:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?a=hN_NFd1h32s:CNhTxhFb96E:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?a=hN_NFd1h32s:CNhTxhFb96E:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?i=hN_NFd1h32s:CNhTxhFb96E:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?a=hN_NFd1h32s:CNhTxhFb96E:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Z/osDigitalSpace?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Z/osDigitalSpace/~4/hN_NFd1h32s" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4849874382941987511/posts/default/9214629227814926248?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4849874382941987511/posts/default/9214629227814926248?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Z/osDigitalSpace/~3/hN_NFd1h32s/introduction.html" title="Introduction" /><author><name>Riaan</name><uri>http://www.blogger.com/profile/12401433017446339497</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="27" height="32" src="http://3.bp.blogspot.com/_DrjM_l2eDa8/Sn97TSFcOgI/AAAAAAAATE0/rf1_W8TvLto/S220/fbcb6612.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh6.ggpht.com/_DrjM_l2eDa8/Soh1-W7ovbI/AAAAAAAATLU/eKcRbQechns/s72-c/os_arch.png" height="72" width="72" /><feedburner:origLink>http://zos.digitalsp.com/2009/08/introduction.html</feedburner:origLink></entry></feed>

