Generic program name for reports

Learn how to put the actual program name on reports/screens.

You Can View User Feedback To This Tip

It's helpful to have the actual program name on reports/screens when users have problems, but it requires the p/a remember to add this information and update it when copying code to new programs.

Simple solution: use the *proc field of the SDS. It's a 10 char field containing the program name.

 
D                SDS
D  ProgramName      *PROC
. . . .
O             ProgramName 

==================================
MORE INFORMATION ON THIS TOPIC
==================================

The Best Web Links: tips, tutorials and more.

Ask your programming questions--or help out your peers by answering them--in our live discussion forums.

Ask the Experts yourself: Our application development gurus are waiting to answer your programming questions.

USER FEEDBACK TO THIS TIP

  • *PROC is the main procedure, and the program name is in a different part of the SDS, etc. — Nick Hobson


This was last published in January 2002

Start the conversation

Send me notifications when other members comment.

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

Please create a username to comment.

-ADS BY GOOGLE

SearchEnterpriseLinux

SearchDataCenter

Close