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

OS/VS COBOL, COBOL II, Enterprise COBOL for z/OS. OpenCOBOL and OOCobol.
Post Reply
Shalini Singh
Registered Member
Posts: 11
Joined: Fri Jan 24, 2014 2:16 pm

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

Post 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?
zprogrammer
Global Moderator
Global Moderator
Posts: 588
Joined: Wed Nov 20, 2013 11:53 am
Location: Mars

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

Post 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
zprogrammer
William Collins
Global Moderator
Global Moderator
Posts: 490
Joined: Sun Aug 25, 2013 7:24 pm

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

Post 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).
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.”