Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatic Indenting of Source code

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi !

Is there any tool or utility exists on IBM Mainframe to automatically indent the VSCOBOL-II source code.

Like the Nested IF statement

IF RECORD-FOUND
IF STATUS EQ 'A'
IF GRADE EQ 'III'

....
....
END-IF
END-IF
END-IF


I worked in Natural (Software A.G) 4 GL language which has a command called STRUCT which automatically indents all the source code no matter how hazy you type.

I want to know if there exists any such command or tool or utility to do the same on VS COBOL -II.




[sig][/sig]
 
The good news is that it does exist, or at least it used to, and I can't believe they'd take such a handy thing out. I used such a tool on the mainframe back in the early eighties. It was an option on the compiler at that time. Unfortunately, I don't remember what the option was called, but check the compiler options in the manual and see what you can come up with.

Betty Scherber
Brainbench MVP for COBOL II
[sig][/sig]
 
Hi Betty !

Thanks for your suggestion.I will try to explore this option.

Regards,
Akondeti [sig][/sig]
 
As far as I am aware, being fairly new to COBOL II myself, there is not utility that I have come across for auto indenting. However, you can set your Profile to Number-On-Stb-CBL which will start you in column 7. There is also a nifty trick that I heard about. According to Stern & Stern, if you place a ">" somewhere in the first 6 columns, that line will indent 2 spaces. Hope this helps. Turin
mailto:turin_2000@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top