On 20/02/2021 02:33, Saravanan wrote:
I see below line in this program
$SET SOURCEFORMAT"FREE"
Will this program work on IBM z/OS mainframe or will it work only on Microfocus?
Both Micro Focus and Fujitsu COBOLs support Free Format.
I have never seen an IBM site that did, but I haven't worked on an IBM
site for over 25 years...
It is pretty trivial to write a program that converts COBOL source from
free to fixed format.
I guess a utility that could convert both ways might be useful...
Oops!, I just realized that fixed format will compile fine as free
format (at least, it will under Fujitsu...), so that isn't needed.
But the subject of your post says convert to .csv.
Given that COBOL source is TEXT, there doesn't seem to be much point in
making it .csv; (every line would be a text literal, separated from the
other lines by a comma and any commas in the text would result in
confusion in the output...). Treat COBOL source as a TEXT file (LINE SEQUENTIAL) because that's what it is. As such, it can be easily
transferred between mainframe and network environments.
Pete.
--
I used to write *COBOL*; now I can do *anything*...
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)