java -jar ../lib/Cobol2Csv.jar -I In/ebcdic.NONFIN -O Out/ebcdic.NONFIN.txt -C 540lay.cbl -IC CP037 -D tab -OFS Text -Dialect 4 -CsvParser 0 I am running the above but output not on expected lines eg. 10 NULLIF_SVF-SBS-PCT PIC 9 USAGE COMP. ---> shows -1 but it should be 255 10 SVF-SBS-PCT PIC S9(4)V9(5) USAGE COMP-3. ---> shows 40404.04040 but should be 0000.00000 have attached the files
ebcidic file is fro US IBM mainframe 37 , ReportEditor shows NULLIF_SVF-NXT-DTE as -1 SVF-NXT-DTE blank
trying out CobolToCsv/Version_0.81.4 these are the parameters i pass to ReportWriter that gives a reasonable outpit viz. split copybook = No split Font cp037 dialect - GNU Cobol little Endian (intel) File structure - Fixed length binary System -Ams putting the same as a batch file as below introduces a tab between each field how to eliminate that java -jar ../lib/Cobol2Csv.jar -I In/0.NONFIN -O Out/0.NONFIN.txt -C tgen534.cbl -IC CP037 -D tab -OFS Text -Dialect 4 -CsvParser 0
trying out CobolToCsv/Version_0.81.4 these are the parameters i pass to ReportWriter that gives a reasonable outpit viz. split copybook = No split Font cp037 dialect - GNU Cobol little Endian (intel) File structure - Fixed length binary System -Ams putting the same as a batch file as below does not work on the COMP fields , is anything else also to be mentioned as a paramater ? java -jar ../lib/Cobol2Csv.jar -I In/0.NONFIN -O Out/0.NONFIN.txt -C tgen534.cbl -Q DoubleQuote -FS Fixed_Length -IC CP037...
Downloaded JRecord documentation (/JRecord_0.90_ReleaseCandidate7/lib/Overview.html#Csv2Cbl) makes a mention of Cobol2Csv.jar being present in Examples directory but not able to find them , is this present elsewhere ? From: Bruce Martin bruce_a_martin@users.sourceforge.net Sent: Sunday, September 2, 2018 11:53 PM To: [jrecord:bugs] Subject: [jrecord:bugs] #25 Doing EBCIDIC to ASCII Conversion on the fly net.sf.JRecord.zTest.Common is in the JRecord source but not the jar. It references Cobol copybooks/data...
Tried using XmplLineIO2 . showed XmplLineIO2.java:48: error: package net.sf.JRecord.zTest.Common does not exist import net.sf.JRecord.zTest.Common.TstConstants; I have cb2xml.jar , Cobol2Xml.jar in the classpath , something I am missing ? ^
Doing EBCIDIC to ASCII Conversion on the fly
I have the ascii converted dump given to me from some other utility (which does it accurately), one of the difference noted, for example is - that a field NULLIF_LNG-MHT-NME-TXT gets translated in JRecord as 0 where as the actual data is 0000 . Any idea why this is happening ? any way to deal with it ? in the copy book this field is specified as PIC 9 USAGE COMP Attaching the ASCII file 0.ASC for reference for the same data. one more instance is LCN-CTT-IDN-NBR PIC S9(9) USAGE COMP JRecord shows...