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?
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?
On 2/19/2021 7:33 AM, 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?
I don't believe IBM COBOL for z/OS supports free format COBOL. It may
be tedious but not too difficult to convert to 80-column fixed
format.
GnuCOBOL supports both fixed format and free format. According to the
GnuCOBOL programmer's guide, in free format there is no distinction
between Area A and Area B, and the maximum line length is 255
characters. Since Column 7 no longer has a defined usage, you need
to use "*>" to indicate that everything to the end of the current line
is a comment.
There is also an open source COBOL program for converting between
fixed format and free format. Unfortunately, it is in free format for GnuCOBOL: https://sourceforge.net/p/gnucobol/contrib/HEAD/tree/trunk/tools/chang eformat/
I don't believe IBM COBOL for z/OS supports free format COBOL. It may
be tedious but not too difficult to convert to 80-column fixed format.
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?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 293 |
Nodes: | 16 (2 / 14) |
Uptime: | 240:42:32 |
Calls: | 6,624 |
Files: | 12,173 |
Messages: | 5,320,078 |