Need to convert x'25' to x'15' in batch on an HFS (linux) file
Problem & what I've tried:
We have an xml file that is in the HFS / linux partition. The xml file was created with only linefeed's (LF). When I use OEDIT or OBROWSE, I can see LF is a hex 25. The problem is that every record has been put into onto one line. This doesn't work well in a batch cobol program. I need to do a global change of x'25' to x'15' to appease cobol. From linux, I've tried SED & TR commands. They all worked great on every character in the file EXCEPT the x'25'. I've tried executing IKJEFT01 and calling EDIT on the HFS file, but EDIT doesn't support HFS. I tried executing IKJEFT01 and calling OEDIT on the HFS file, but OEDIT utilized ISPF and will not work in batch. I was able to get FileManger via ISPF panels to do the global changes, but I cannot seem to get the batch FILEMGR to work. It responds with FMNBA317 Invalid input data set for function DSU(unsupported DSORG). The file is a variable length file (generated from another unix machine). The command I used in File Manager (ISPF) that worked was C ALL X'25' X'15'
I've tried DSEB & DSU in file manager batch & get the same FMNBA317 error message of unsupported DSORG
Anyone have any ideas of how to change the x'25' to x'15' in JCL? I'm open to any solution really. I just figured that if file manager can do it via ispf screens it should be able to do it via batch.
in OBROWSE, this is what my test file in hex looks like (for simplicity, erased all but two letters and the x'25'):
Menu Utilities Compilers Help
-------------------------------------------------------------------------------
ISRBROBA /u/tmam3/testing/ex2 Line 00000000 Col 001 003
Command ===> Scroll ===> CSR
********************************* Top of Data **********************************
------------------------------------------------------------------------------
a.b
828
152
------------------------------------------------------------------------------
******************************** Bottom of Data ********************************
-------------------------------------------------------------------------------
ISRBROBA /u/tmam3/testing/ex2 Line 00000000 Col 001 003
Command ===> Scroll ===> CSR
********************************* Top of Data **********************************
------------------------------------------------------------------------------
a.b
828
152
------------------------------------------------------------------------------
******************************** Bottom of Data ********************************
TIA!