5 pts.
 command to delete a line in 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?

Software/Hardware used:
ASKED: August 26, 2008  9:55 AM
UPDATED: August 26, 2008  12:06 PM

Answer Wiki:
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.
Last Wiki Answer Submitted:  August 26, 2008  10:43 am  by  Gilly400   23,625 pts.
All Answer Wiki Contributors:  Gilly400   23,625 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _