<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to support-requests</title><link>https://sourceforge.net/p/cobol2j/support-requests/</link><description>Recent changes to support-requests</description><atom:link href="https://sourceforge.net/p/cobol2j/support-requests/feed.rss" rel="self"/><language>en</language><lastBuildDate>Thu, 29 Aug 2013 18:42:25 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/cobol2j/support-requests/feed.rss" rel="self" type="application/rss+xml"/><item><title>#4 Support for variable length records</title><link>https://sourceforge.net/p/cobol2j/support-requests/4/?limit=50#4287</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;To fix this problem, make potentialDepOn a global variable in RecordSet.java -&lt;br /&gt;
private HashMap potentialDepOn = new HashMap();&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Prash</dc:creator><pubDate>Thu, 29 Aug 2013 18:42:25 -0000</pubDate><guid>https://sourceforge.net2cc464d57e2a8c1df34a43c675f64b622ed5c81d</guid></item><item><title>Support for variable length records</title><link>https://sourceforge.net/p/cobol2j/support-requests/4/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I am not able to convert a Variable length file using the cobol2j tool. xsd creation happens correctly but parsing the data file is failing. I am skipping the first 4 bytes for every rset.hasNext() in Dat2xml.java. The first 4 bytes of each record is the length of the record per the mainframe data specs. Not sure how to use the length to determine the end of record and start a new record.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Prash</dc:creator><pubDate>Wed, 21 Aug 2013 19:37:25 -0000</pubDate><guid>https://sourceforge.net022f78e9234ccb273404264d11128711d80371a0</guid></item><item><title>Setting Codepage</title><link>https://sourceforge.net/p/cobol2j/support-requests/3/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;cobol2j (the example Cb2xc2j) is using the translet cb2xml2cobol2j.jar in which the codepage (ConversionTable Cp037) is defined. So it's not possible to parameterize the codepage when using the example.&lt;br /&gt;
The source code for the translet is not availabe.&lt;br /&gt;
Is there an easy way to set the codepage?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Sun, 12 Dec 2010 00:08:51 -0000</pubDate><guid>https://sourceforge.net1f2541832bbe74cf08d5f4f1cb4c0eaa4cb60511</guid></item><item><title>Variable Length file</title><link>https://sourceforge.net/p/cobol2j/support-requests/2/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I am not able to convert a Variable length file using the cobol2j tool. The file also has binary and packed data. tried converting using the dat2xml, dat2xls and dat2dat files of cobol2j but nothing works. please let know if the tool supports conversion os variable lenth file and if it does what is the method or step to do it.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Narayanan Collimuttum</dc:creator><pubDate>Wed, 28 Jul 2010 13:05:02 -0000</pubDate><guid>https://sourceforge.netb6e891da1a2e283f78d5c9af0461bf907cfdd0b7</guid></item><item><title>can't process binary field</title><link>https://sourceforge.net/p/cobol2j/support-requests/1/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Encountered the following error when tested on a file&lt;br /&gt;
with a single binary field (PIC S9(8) COMP.) Tried&lt;br /&gt;
different field sizes, namely 2,4 &amp;amp; 8 all had same&lt;br /&gt;
error.  Please advise.&lt;/p&gt;
&lt;p&gt;-------------------------------------------------------&lt;br /&gt;
Error&lt;br /&gt;
-------------------------------------------------------&lt;/p&gt;
&lt;p&gt;Exception in thread "main" java.lang.NumberFormatException:&lt;br /&gt;
at java.lang.Throwable.fillInStackTrace(Native&lt;br /&gt;
Method)&lt;br /&gt;
at&lt;br /&gt;
java.lang.Throwable.fillInStackTrace(Compiled Code)&lt;br /&gt;
at java.lang.Throwable.&amp;lt;init&amp;gt;(Compiled Code)&lt;br /&gt;
at java.lang.Exception.&amp;lt;init&amp;gt;(Exception.java:42)&lt;br /&gt;
at&lt;br /&gt;
java.lang.RuntimeException.&amp;lt;init&amp;gt;(RuntimeException.java:47)&lt;br /&gt;
at&lt;br /&gt;
java.lang.IllegalArgumentException.&amp;lt;init&amp;gt;(IllegalArgumentException.java:43)&lt;br /&gt;
at&lt;br /&gt;
java.lang.NumberFormatException.&amp;lt;init&amp;gt;(NumberFormatException.java:43)&lt;br /&gt;
at java.lang.Long.parseLong(Compiled Code)&lt;br /&gt;
at java.math.BigInteger.&amp;lt;init&amp;gt;(Compiled Code)&lt;br /&gt;
at java.math.BigInteger.&amp;lt;init&amp;gt;(BigInteger.java:280)&lt;br /&gt;
at java.math.BigDecimal.&amp;lt;init&amp;gt;(BigDecimal.java:105)&lt;br /&gt;
at net.sf.cobol2j.RecordSet.readZoned(Unknown&lt;br /&gt;
Source)&lt;br /&gt;
at&lt;br /&gt;
net.sf.cobol2j.RecordSet.getFieldsValues(Compiled Code)&lt;br /&gt;
at net.sf.cobol2j.RecordSet.next(Unknown Source)&lt;br /&gt;
at&lt;br /&gt;
net.sf.cobol2j.RecordSet.getNextRecordAsPlainString(Compiled&lt;br /&gt;
Code)&lt;br /&gt;
at test.b4.main(Compiled Code)&lt;/p&gt;
&lt;p&gt;------------------------------------------------------&lt;br /&gt;
Program listing&lt;br /&gt;
------------------------------------------------------&lt;br /&gt;
package test;&lt;/p&gt;
&lt;p&gt;import java.io.File;&lt;br /&gt;
import java.io.FileInputStream;&lt;br /&gt;
import java.io.FileNotFoundException;&lt;br /&gt;
import java.io.FileWriter;&lt;br /&gt;
import java.io.IOException;&lt;/p&gt;
&lt;p&gt;import net.sf.cobol2j.FileFormat;&lt;br /&gt;
import net.sf.cobol2j.FileFormatException;&lt;br /&gt;
import net.sf.cobol2j.RecordFormat;&lt;br /&gt;
import net.sf.cobol2j.RecordSet;&lt;br /&gt;
import net.sf.cobol2j.tables.EBCDIC_037_TO_ISO_8859_1;&lt;/p&gt;
&lt;p&gt;public class b4 {&lt;/p&gt;
&lt;p&gt;public static void main(String[] args) {&lt;/p&gt;
&lt;p&gt;RecordSet ctest = new RecordSet();&lt;br /&gt;
FileFormat f = new FileFormat();&lt;br /&gt;
f.setConversionTable(new&lt;br /&gt;
EBCDIC_037_TO_ISO_8859_1());&lt;br /&gt;
// Only one record structure&lt;br /&gt;
f.setDistinguishFieldSize(0);&lt;br /&gt;
RecordFormat rF =  f.addRecordDefinition("0");&lt;br /&gt;
// 4 byte long binary&lt;br /&gt;
rF.addFieldDefinition("Rating", '9', 4, 0, false);&lt;br /&gt;
ctest.setFileFormat(f);&lt;/p&gt;
&lt;p&gt;try {&lt;br /&gt;
ctest.setInputStream(new&lt;br /&gt;
FileInputStream("b4.dat"));&lt;br /&gt;
File plik = new File("NICE_OUTPUT_FILE.TXT");&lt;br /&gt;
FileWriter out = new FileWriter(plik);&lt;br /&gt;
while (ctest.hasNext())&lt;/p&gt;
&lt;p&gt;out.write(ctest.getNextRecordAsPlainString(", ") + "\n");&lt;br /&gt;
out.close();&lt;br /&gt;
} catch (FileNotFoundException ex) {&lt;br /&gt;
ex.printStackTrace();&lt;br /&gt;
} catch (IOException ex) {&lt;br /&gt;
ex.printStackTrace();&lt;br /&gt;
} catch (FileFormatException ex) {&lt;br /&gt;
ex.printStackTrace();&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
}&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Mon, 31 Jul 2006 23:00:06 -0000</pubDate><guid>https://sourceforge.netf139bad5d2fa91b52acc0cdba0501693d38150fc</guid></item></channel></rss>