<?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 SAS V9.4 on Windows-7, creating file (PDS) for Mainframe, need help with closing member names in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-V9-4-on-Windows-7-creating-file-PDS-for-Mainframe-need-help/m-p/802494#M315929</link>
    <description>&lt;P&gt;We run SAS V.9.4 on Windows-7 servers. I am building JCL for what will be a thousand or so jobs to do regression testing on some software. These jobs run on an IBM z/OS mainframe.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The intent is to FTP the output file. I want a member name for each job. I am not certain what is needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code in LC_BLD_TESTJCL.txt sets some macro variables and then loads five arrays, then there is a series of do loops for each array.&lt;/P&gt;&lt;P&gt;In the inner most do loop there's an INCLUDE for LC_INCURQRY.txt that performs the put statements building the jobs. One of the macro variables, BCMAJCL, contains the name of the PDS I want to create.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As it is, I create a file on Windows that has the JCL and it looks good; however, the intent is to write each job to a PDS member. The member name is to be the same as the jobname which is built and is variable BCMAJNAM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The current file written has a FILENAME of JCLBUILT. In this code I'm creating 32 jobs. I'll have more to add later.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I need to change the program to use FILENAMEJCLFTP and that somewhere in the INCLUDE I need to set FILE JCLFTP(&amp;amp;BCMAJNAM).&lt;/P&gt;</description>
    <pubDate>Wed, 16 Mar 2022 14:34:55 GMT</pubDate>
    <dc:creator>lchristensen</dc:creator>
    <dc:date>2022-03-16T14:34:55Z</dc:date>
    <item>
      <title>SAS V9.4 on Windows-7, creating file (PDS) for Mainframe, need help with closing member names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-V9-4-on-Windows-7-creating-file-PDS-for-Mainframe-need-help/m-p/802494#M315929</link>
      <description>&lt;P&gt;We run SAS V.9.4 on Windows-7 servers. I am building JCL for what will be a thousand or so jobs to do regression testing on some software. These jobs run on an IBM z/OS mainframe.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The intent is to FTP the output file. I want a member name for each job. I am not certain what is needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code in LC_BLD_TESTJCL.txt sets some macro variables and then loads five arrays, then there is a series of do loops for each array.&lt;/P&gt;&lt;P&gt;In the inner most do loop there's an INCLUDE for LC_INCURQRY.txt that performs the put statements building the jobs. One of the macro variables, BCMAJCL, contains the name of the PDS I want to create.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As it is, I create a file on Windows that has the JCL and it looks good; however, the intent is to write each job to a PDS member. The member name is to be the same as the jobname which is built and is variable BCMAJNAM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The current file written has a FILENAME of JCLBUILT. In this code I'm creating 32 jobs. I'll have more to add later.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I need to change the program to use FILENAMEJCLFTP and that somewhere in the INCLUDE I need to set FILE JCLFTP(&amp;amp;BCMAJNAM).&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 14:34:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-V9-4-on-Windows-7-creating-file-PDS-for-Mainframe-need-help/m-p/802494#M315929</guid>
      <dc:creator>lchristensen</dc:creator>
      <dc:date>2022-03-16T14:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAS V9.4 on Windows-7, creating file (PDS) for Mainframe, need help with closing member names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-V9-4-on-Windows-7-creating-file-PDS-for-Mainframe-need-help/m-p/802498#M315930</link>
      <description>&lt;P&gt;I am not seeing any PUT statements that appear to write to the JCLBUILT file.&lt;/P&gt;
&lt;P&gt;Also there is an %include file that does not match the name of the LC_INCUQRY that you posted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may have to show the actual an example of text in JCLBUILT and show us exactly where something needs to change. It has been over 30 years since I wrote any JCL and between a very fuzzy memory (don't remember //SYSTIN DD though maybe //SYSIN ) and no experience with PDS members at the time I have no idea where/what to look at for where a member might be.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note for examples on the forums: Find a way to replace hard-coded paths to drives/folders we don't have so we can attempt to test code. For example, you can use a simple FILE PRINT instead of Filename pointing to a non-existen loaction in the data step code to write the results (after manual copy and paste of the LC_INCUQRY text instead of %include ) into the Results window. At least that way I can see results from the code.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 15:28:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-V9-4-on-Windows-7-creating-file-PDS-for-Mainframe-need-help/m-p/802498#M315930</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-03-16T15:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: SAS V9.4 on Windows-7, creating file (PDS) for Mainframe, need help with closing member names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-V9-4-on-Windows-7-creating-file-PDS-for-Mainframe-need-help/m-p/802996#M316180</link>
      <description>&lt;P&gt;Thank you. As part of downloading source I needed to make some changes. I really didn't expect anyone to download and run it; I really thought someone might know what is needed to FTP to a mainframe host and close each member. I know it can be done, we used to have Pat Arti's I/O Driver and it's JCLMAGIC piece did that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had little time, so I made a work around. I added control cards for IBM's IEBUPDTE ( './ ADD' , './ ENDUP') and when I did the file transfer thru ISPF option 6 I then ran IEBUPDTE. So I'm done.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sun, 20 Mar 2022 17:53:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-V9-4-on-Windows-7-creating-file-PDS-for-Mainframe-need-help/m-p/802996#M316180</guid>
      <dc:creator>lchristensen</dc:creator>
      <dc:date>2022-03-20T17:53:03Z</dc:date>
    </item>
  </channel>
</rss>

