<?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: Write hexadecimal binary file for upload to Mainframe in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Write-hexadecimal-binary-file-for-upload-to-Mainframe/m-p/3241#M1044</link>
    <description>Hi:&lt;BR /&gt;
  This is really the kind of question that is better answered by Tech Support -- it's not really an EG question. Since you are writing a DATA step program and have very specific data requirements, your best bet for a quick response is to try Tech Support, where they have access to a mainframe on which to test opening the created output file.&lt;BR /&gt;
  &lt;BR /&gt;
They can take a sample data set from you and test the program from creation to output file open on the other system, if they need to. If your output needs a CRLF character, they can help you find out which is the correct CRLF or End-of-Record marker or translation table to use. To find out how to contact Tech Support, refer to:  &lt;A href="http://support.sas.com/techsup/contact/index.html" target="_blank"&gt;http://support.sas.com/techsup/contact/index.html&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
Good luck!&lt;BR /&gt;
cynthia</description>
    <pubDate>Tue, 29 May 2007 00:08:43 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2007-05-29T00:08:43Z</dc:date>
    <item>
      <title>Write hexadecimal binary file for upload to Mainframe</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Write-hexadecimal-binary-file-for-upload-to-Mainframe/m-p/3240#M1043</link>
      <description>Hello all,&lt;BR /&gt;
I've changed jobs and have reverted from EG back to V9, however, I hope someone here can help me.  &lt;BR /&gt;
I need to create a hexadecimal binary file from a SAS dataset to be uploaded to the Mainframe for a COBOL module to use.  I have written the following program:&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
file "E:\Probe_SM\Winter_2007\Active\Out\NTA_&amp;amp;monthkey..bin" lrecl=71 RECFM=F;&lt;BR /&gt;
set libout.active2_NTA_&amp;amp;monthkey.;&lt;BR /&gt;
put&lt;BR /&gt;
	@1  record_type 		$ebcdic2.	&lt;BR /&gt;
	@3  customer_group 		$ebcdic20.&lt;BR /&gt;
	@23 customer_id 		$ebcdic11.&lt;BR /&gt;
	@34 filler			$ebcdic9.&lt;BR /&gt;
	@43 account_id 		$ebcdic19.&lt;BR /&gt;
	@62 filler2			$ebcdic1.&lt;BR /&gt;
	@63 delq_status		$ebcdic2.&lt;BR /&gt;
	@65 delq_days		s370fZD3.&lt;BR /&gt;
	@68 curr_num_pymt_ahead 	s370fPD3.2&lt;BR /&gt;
	@71 write_off_acct_in		$ebcdic1.&lt;BR /&gt;
	;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
It is based on the following COBOL definitions I have been given (the field names are slighly different but the order is the same):&lt;BR /&gt;
&lt;BR /&gt;
RECORD-TYPE		PIC X(2).&lt;BR /&gt;
CUSTOMER-GROUP		PIC X(20).&lt;BR /&gt;
CUSTOMER-NUMBER	PIC X(11).&lt;BR /&gt;
FILLER			PIC X(9).&lt;BR /&gt;
ACCOUNT-NUMBER		PIC X(13).&lt;BR /&gt;
FILLER			PIC X(7).&lt;BR /&gt;
NTR-DELQ-STATUS		PIX X(2).&lt;BR /&gt;
NTR-DELQ-DAYS		PIC 9(3).&lt;BR /&gt;
NTR-NO-PYMT-AHEAD	PIC S9(3)V99 COMP-3.&lt;BR /&gt;
NTR-WRITE-OFF		PIX X(1).&lt;BR /&gt;
&lt;BR /&gt;
The Mainframe guy keeps coming back to me to tell me that the record is continuing past the last column (71) and the numeric fields aren't displaying correctly.  Following is how it looks to him.  The formatting is a bit wrecked.  The 01 at the end of the first line should be the beginning of the second line.  The last column of every line is the N.&lt;BR /&gt;
&lt;BR /&gt;
BROWSE    SRT1.S.NTA.ACTIVE.MATCH                    Line 00000000 Col 001 080 &lt;BR /&gt;
  Command ===&amp;gt;                                                  Scroll ===&amp;gt; CSR  &lt;BR /&gt;
----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8&lt;BR /&gt;
********************************* Top of Data **********************************&lt;BR /&gt;
01                          60003         CC 1111222233334444 0 00{...N01       &lt;BR /&gt;
                   60003         MB 1234567890       1 00{..%N01                &lt;BR /&gt;
         110007         CC 1111222233334444 0 00{...N01                         &lt;BR /&gt;
110023         CC 1111222233334444 0 00{...N01                         200010   &lt;BR /&gt;
&lt;BR /&gt;
Do I need to do something to signify the end of a line or does the Mainframe guy need to do something ?  Also are my SAS number formats correct ?&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your help.&lt;BR /&gt;
Regards&lt;BR /&gt;
Tim</description>
      <pubDate>Mon, 28 May 2007 23:12:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Write-hexadecimal-binary-file-for-upload-to-Mainframe/m-p/3240#M1043</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-05-28T23:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Write hexadecimal binary file for upload to Mainframe</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Write-hexadecimal-binary-file-for-upload-to-Mainframe/m-p/3241#M1044</link>
      <description>Hi:&lt;BR /&gt;
  This is really the kind of question that is better answered by Tech Support -- it's not really an EG question. Since you are writing a DATA step program and have very specific data requirements, your best bet for a quick response is to try Tech Support, where they have access to a mainframe on which to test opening the created output file.&lt;BR /&gt;
  &lt;BR /&gt;
They can take a sample data set from you and test the program from creation to output file open on the other system, if they need to. If your output needs a CRLF character, they can help you find out which is the correct CRLF or End-of-Record marker or translation table to use. To find out how to contact Tech Support, refer to:  &lt;A href="http://support.sas.com/techsup/contact/index.html" target="_blank"&gt;http://support.sas.com/techsup/contact/index.html&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
Good luck!&lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 29 May 2007 00:08:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Write-hexadecimal-binary-file-for-upload-to-Mainframe/m-p/3241#M1044</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-05-29T00:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Write hexadecimal binary file for upload to Mainframe</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Write-hexadecimal-binary-file-for-upload-to-Mainframe/m-p/3242#M1045</link>
      <description>Cynthia's advice is, as always, platinum.&lt;BR /&gt;
&lt;BR /&gt;
I suggest you also review the following SN "SN-V8+-003715  SAS formats that correspond to COBOL data descriptions".&lt;BR /&gt;
&lt;BR /&gt;
You should also look again at your definition for FILLER2.  Your column and format specifications refer to one byte, but the file specification is not one byte.&lt;BR /&gt;
&lt;BR /&gt;
Kind regards&lt;BR /&gt;
&lt;BR /&gt;
David</description>
      <pubDate>Tue, 29 May 2007 00:22:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Write-hexadecimal-binary-file-for-upload-to-Mainframe/m-p/3242#M1045</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-05-29T00:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Write hexadecimal binary file for upload to Mainframe</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Write-hexadecimal-binary-file-for-upload-to-Mainframe/m-p/3243#M1046</link>
      <description>Hi Cynthia and David,&lt;BR /&gt;
&lt;BR /&gt;
Thanks ever so much for your help.  I will try to contact Tech Support.  &lt;BR /&gt;
&lt;BR /&gt;
David you are right, the COBOL definition for account_id and filler2 has changed since the document I am using was issued.&lt;BR /&gt;
&lt;BR /&gt;
All the best.&lt;BR /&gt;
&lt;BR /&gt;
Tim</description>
      <pubDate>Tue, 29 May 2007 02:48:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Write-hexadecimal-binary-file-for-upload-to-Mainframe/m-p/3243#M1046</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-05-29T02:48:54Z</dc:date>
    </item>
  </channel>
</rss>

