View previous topic :: View next topic
|
Author |
Message |
Renato Zangerolami
New User
Joined: 06 Dec 2019 Posts: 28 Location: Brazil
|
|
|
|
Can anyone tell me if there is any resource where it is possible to indent Cobol code or is it necessary to create a program for that? |
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2018 Location: USA
|
|
Back to top |
|
|
Renato Zangerolami
New User
Joined: 06 Dec 2019 Posts: 28 Location: Brazil
|
|
|
|
where I work there are some rules, eg:
Pic, section, exit .. starts at column 40 |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
Googling "COBOL SOURCE CODE BEAUTIFIER" gives some possible options. |
|
Back to top |
|
|
Renato Zangerolami
New User
Joined: 06 Dec 2019 Posts: 28 Location: Brazil
|
|
|
|
Thank you Nic. |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
Just a side note on indentation.
COBOL doesn't give you room to indent too much.
But when I used the PL/I Optimizing compiler (1980's and 90's, but most likely still the same), the max compiler input record length was 100, with just column 1 reserved for carriage control, so 99 characters for source code allowed for very deep indentation.
Another side note - I had an intern (rising college senior in systems engineering) working with me on one one job around 2014, and while working with text files I asked her if she knew what a carriage was. All she knew was the horse drawn vehicle. lol. |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
I think Enterprise PL/I has been changed fairly recently to allow an input LRECL=200 for source. I personally don't see why it's really necessary, having been used to breaking up lines since forever. |
|
Back to top |
|
|
|