Usage of Y2PGDSPK (ZZ* fields) vs Y2PGDSP (##* fields)

Document ID : KB000113759
Last Modified Date : 25/09/2018
Show Technical Document Details
Issue:
We're trying to figure out if there's any setting within the Model to use Y2PGDSPK (ZZ* fields) or Y2PGDSP (##* fields).
All of our Models have Model Value YHLLGEN set to *RPGIV. Now, majority of our Models have Y2PGDSPK (ZZ* fields) in the generated source.
But there is this one Model that uses the other Y2PGDSP (##* fields).
We try tweaking the Model Value YHLLVNM and Device Data keyword *PGMDS, thinking that these two may control the usage of one external DS versus the other.
But our testing showed tweaking these two items still do not cause any difference to what we already have.

Attached document shows the settings that we have. 
Environment:
IBM ISERIES
Cause:
There is no specific setting at a model value level to control the naming the prefix for fields.
Resolution:
There is no specific setting at a model value level to control the naming the prefix for fields.
The names of the various device formats and the prefixes for different types of fields used while generation are stored in the file – YDEVFMTRFP.
You can change the names/prefixes in that particular file and the same will get reflected at generation time.
We suggest you compare the YDEVFMTRFP files across the 2 models (one which has ZZ and other which has ## for prefixes).
Based on the difference, you can set the values to be same, to get the similar output in codes.
However, it is a good idea to take a backup of the model, prior to making any changes around this.