Page 1 of 1

Add a new line in every COBOL Program in the PDS.

Posted: Sun Sep 20, 2015 2:49 pm
by Shalini Singh
Hi,

I have a requirement to add a new line after line one of all our COBOL programs. All members have IDENTIFICATION DIVISION on line one, now (because of the merge up perhaps) managers want to insert a line after line one that reads like "Owned by ...". Though the rest of the code in the members remains same. I did a search and could not find something to build on.

Could you advise on any idea on this?

Re: Add a new line in every COBOL Program in the PDS.

Posted: Sun Sep 20, 2015 2:55 pm
by zprogrammer
Identify the programs and create a EDIT MACRO to run through the members

This post should be part of ISPF forum unless you wanted to achieve a solution in COBOL

Re: Add a new line in every COBOL Program in the PDS.

Posted: Mon Sep 21, 2015 4:40 am
by William Collins
If this is a genuine attempt at marking ownership for proprietary reasons, then company legal advisers should give you the text. It won't be what has been suggested. Probably. Can't be sure, as I don't know your particular legal jurisdiction.

Have a check with your source-management package. Ask the legal team if text in the ISPF sign-on message would be sufficient.

Enterprise COBOL V5.2 allows for a copyright message to be embedded in the generated program-object (see compiler option COPYRIGHT).