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 first published in January 2002

Dig deeper on iSeries CL programming

0 comments

Oldest 

Forgot Password?

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

Your password has been sent to:

SearchEnterpriseLinux

SearchDataCenter

Close