Focal Point
[SOLVED] How to comment mods to a progeram

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/786106281

July 16, 2009, 02:57 PM
webmeister
[SOLVED] How to comment mods to a progeram
When you modify a program, do any of you add comments to your program concerning the modifications made? Can any of you provide a sample of how you comment your programs as far as modifications are made? I'm trying to keep my comments in my program to a minimum, but am just interested to see what others do.

Thanks!!

This message has been edited. Last edited by: Kerry,


Mainframe FOCUS 7.0
VM/CMS and MVS/TSO
July 16, 2009, 03:18 PM
Darin Lee
Our auditors got on our case for not tracking changes so now we just include a comment (-*)log at the top of each fex that notes the date userid of whoever makes the change, and a very brief statement of the change made, reason for change, and/or reference to individual requesting the change.

The process is only good when we remember to add to the log when changes are made, but it has satisfied the auditor as long as change dates on the files are relatively close to the latest log entries.

There are some change management features available now for MRE, but we haven't looked into those.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
July 16, 2009, 06:11 PM
susannah
we comment at the BOTTOM of the fex
a single in-line comment with name editdate and reference number
all the details about the comments at the end in "flowerboxes"
-*************************
-* #2 edit made as result of audit etc etc
-* #3 changed by customer request etc
-***********************
to us, long flowerboxes at the top of a fex are soooo last millenium. Big Grin




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
July 17, 2009, 12:03 PM
rfbowley
Well, at my age, I guess I will have to finish my career in the 'last millenium' :-)

As a consultant who works on many reports, at many clients, I make it a point to add something basically like this to the top of each fex I modify:

-* 7/14/2009 Robert Bowley WCS enhancement project to:
-* TaRa Solutions, LLC Add an Additional Production information section
-* Add a YTD IC section
I also try to add a comment block in teh immediate vicinity of the code I change / add:

-************************************************************************************************************************
-* Added the test OR (GENERICBOOLEAN2 EQ 1) to acquire the Additional Production information
-* Added the define to create the section flag for display of the data
-* Added the calculation for ICMINDTE to be able to use a date range in the next step
-************************************************************************************************************************

I can't say for sure that it helps anyone else, but when I return to a client after a prolonged gig at an entirely different installation, it sure helps me remember what I did and where.


Robert F. Bowley Jr.
Owner
TaRa Solutions, LLC

In WebFOCUS since 2001
July 17, 2009, 03:29 PM
Doug
Yes... I comment often and highly recommend it... I use the following and variations thereof:
-* File RptTimes.fex
-******************************************************************************
-* Full Name   : Report Time.  For proper display of the current time.
-* Description : This creates &RptTime from the system variable: &TOD
-* 07072009 DL : Created by Douglas Lee of Client Resources Inc.
-******************************************************************************
Where the first line is added by DevStudio, and left alone as a matter of consistency. And the newest mod is always added above the most recent mod. Or, in this case, above the "created by" line. Any standardized "Flower Box" should work. Check with you client to see if they have and standardized flower boxes around...
I admit... This is, as Susannah says: this is soooo last millenium. Music But, it's also sooo visible and not easily forgotten or over-looked...




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
July 20, 2009, 02:19 AM
Tony A
Might be last millenium but you could also write a fex (folkexec to you S Wink) to extract "basic" documentation about all your programs.

If you keep the comments up-to-date then you have a method of updating documentation as well.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
July 20, 2009, 10:38 AM
webmeister
Thanks to all who replied - that is very appreciated. I comment my programs pretty much the same way, and was just curious to see what others did for documention internally within a program. Again, I apprciate your responses.


Mainframe FOCUS 7.0
VM/CMS and MVS/TSO
July 22, 2009, 04:19 AM
Baillecl
Hi, Focus Players,
Since last millenium people still have a little right to exist, I'll simply say that my biggest problem, rather than -* Mr So and So did that, is to remember all that is available ...
My memory turns to be sooo last Millenium, and my number of Folk's Execs so big that I tend to forget.
Any Idea for a simple and brilliant Catalog ( Including some Outputs to help the memory)
Cordially and Focusely


Focus Mainframe 7.6.11
Dev Studio 7.6.11 and !!!
PC Focus, Focus for OS/2, FFW Six, MSO
July 22, 2009, 09:54 AM
susannah
the most brilliant catalog device i've ever seen came from francis mariani... i use it...maybe francesco will come to summit next year and make a presentation!




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
July 23, 2009, 11:43 PM
Doug
Susanah / Francis, What is "The most brilliant catalog device i've ever seen came from Francis Mariani"?
Are we looking for "Adding documentation (comments) in a fex" or "producing a document which contains all the fexes in, say a particular app folder". I have created the later into a nice PDF using "TABLE FILE SYSCOLUM" back at FMDS and Chubb. I'll forage for the source code and, perhaps, pass it on. Perhaps (32) I can present it at Summit 10 (wherever that may be?)




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
July 23, 2009, 11:54 PM
susannah
My money is on Dallas for Summit 10.... any takers?




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
July 24, 2009, 08:21 AM
PBrightwell
If we get to vote, Dallas, Houston or San Antonio would increase my chances of getting to go againg next year.


Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes
July 24, 2009, 08:28 AM
Doug
I'd go for the Gaylord Texan Hotel & Convention Center in Grapevine (Dallas) Hotel. It's right near DFW which may be a bit more convenient for national attendance... But, there is The Gaylord National Hotel & Convention Center, On the Potomac in Maryland which may be more convenient for others... But, then again, there's always the Gaylord Palms Hotel & Convention Center & Hotel in Orlando - Kissimmee, Florida near Disney...
July 24, 2009, 08:35 AM
Danny-SRL
What about something a bit more exotic: US Virgin Islands? Peurto Rico?


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

July 24, 2009, 08:57 AM
Doug
That would be Great! But, how'd He put it: One hint... We really like this type of place...
July 24, 2009, 10:11 AM
susannah
we think it has to be a place where Gaylord has an operation...so that means Orlando, Dallas, DC, or Nashville.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
July 24, 2009, 02:08 PM
Doug
quote:
we think it has to be a place where Gaylord has an operation...
I don't want to push the envelope here... But, check out Gaylord National Hotel & Convention Center. On the Potomac in Maryland... Everything In One Place. My money is on this one.
July 24, 2009, 03:15 PM
webmeister
I think this thread got quite a bit off the track.... any more thoughts on documenting? Any samples out there?

Can we get back on track?


Mainframe FOCUS 7.0
VM/CMS and MVS/TSO
July 24, 2009, 06:47 PM
Doug
Sure W,

Are we looking to:
1) Add documentation (comments) in a fex? Suggestions as to the best methodology to do that? Value of doing such in-line documentation which I think is invaluable - when written properly)
OR
2) Producing a document which contains all the fexes inone or more app folders?
OR
3) Parsing all fexes, mfds, htms, etc in one of more app paths and creating some documentaion based on the information retrieved?

Please answer this and this just might get back on track...
July 25, 2009, 09:22 PM
Doug
Susanah, Is this http://ufm.ibi.com/filerepo/0000/0521/Coding_Standards_for_WebFOCUS_Development.ppt the one you mentioned above (Posted Wed Jul 22 2009 09:54)? Interesting Stuff...