Print the contents of DB2 SQLJ profiles (db2profp and profp)

The DB2® SQLJ Profile Printer, db2profp, prints the contents of a DB2 customized profile in plain text. The Profile Printer, profp, prints the contents of profiles generated by the SQLJ translator in plain text.

To print the content of the profiles generated by the SQLJ translator in plain text, use the profp utility as follows:

     profp MyClass_SJProfile0.ser

Where MyClass_SJProfile0.ser is the name of the profile you want to print.

To print the content of the DB2 customized version of the profile in plain text, use the db2profp utility as follows:

     db2profp MyClass_SJProfile0.ser

Where MyClass_SJProfile0.ser is the name of the profile you want to print.

Note: If you run db2profp on an uncustomized profile, it tells you that the profile has not been customized. If you run profp on a customized profile, it displays the contents of the profile without the customizations.

DB2 SQLJ Profile Printer usage and syntax:

     db2profp [options] <SQLJ_profile_name>

Where SQLJ_profile_name is the name of the profile to be printed and options is the list of options you want.

The options available for db2profp are the following:

-URL=<JDBC_URL>
Where JDBC_URL is the URL you want to connect to. For more information, see Access your iSeries™ database with the IBM® Developer Kit for Java™ JDBC driver.
-user=<username>
Where username is the user name is your user profile.
-password=<password>
Where password is the password of your user profile.
Related concepts
Structured Query Language for Java profiles
The structured query language for Java (SQLJ) translator (sqlj)
Precompile SQL statements in a profile using the DB2 SQLJ profile customizer, db2profc
SQLJ profile auditor installer (profdb)
Embed SQL statements in your Java application
Related tasks
Convert a serialized profile instance to Java class format using the SQLJ profile conversion tool (profconv)
Compile and run SQLJ programs