command to delete a line in physical file

5 pts.
Tags:
CL
Physical File
i want to delete the comment lines through cl program.i want to know the command for deleting a line in physical source file?
ASKED: August 26, 2008  9:55 AM
UPDATED: August 26, 2008  12:06 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

Hi,

There’s no command to delete a record from a physical file from a CL program. You’ll need to create an RPG program or an SQL script.

It’s also not advisable to delete comment lines from source files – they’re normally there for a reason – to explain what a program is doing and why.

I once worked at a site where the manager had removed all the comments from all the program sources (he said that the programmers should be good enough to work without comments otherwise they shouldn’t be there!) – this made all the changes take much longer than they would have without the comments as you had to investigate what the program was doing before you could make any changes.

Having said that – bad, misleading or meaningless comments are worse than no comments at all.

Regards,

Martin Gilbert.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following