Problem solve Get help with specific problems with your technologies, process and projects.

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


Dig Deeper on iSeries CL programming

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

Close