| |
 |
Hotline Question of the Month |
| by Margaret Jeronim |
|
| |
Question: I've downloaded the GETORDNUM external object from your Web site. When I try to modify it, and use it with a field name that is 8 characters long, I get an error message that the field name is too long.
Are all mrc external objects allowing only 6 characters for field names? |
Answer:
This external object is written in RPGIII, which allowed only 6 characters for a field name. In order to use this external object with fields that are 8 characters long you will need to convert it to RPGIV (RPGLE).
Check which file your object resides in (it should, by default, be in QOBJSRC in MRCAPPLLIB).
Then use the CVTRPGSRC command to convert the source.
Before using the CVTRPGSRC command, make sure that you create a duplicate object on the QARNCVTLG log file in the QRPGLE library, and put it in MRCAPPLLIB. You will need to specify that log file name and library on the command (press F10 for additional parms).
Use the CVTRPGSRC command and F4 to prompt it.
Your command should look similar to this one:
CVTRPGSRC FROMFILE(MRCAPPLLIB/QOBJSRC) FROMMBR(GETORDNUM) TOFILE(MRCAPPLLIB/QOBJLESRC) TOMBR(GETORDNUM).
Have a hotline question of your own? Send an e-mail to support@mrc-productivity.com and let our product specialists help you!
|
|
 |
mrc publishes this newsletter on a monthly basis. Subscription is free of charge. Please send any questions or comments about this newsletter to news@mrc-productivity.com. This newsletter is edited by Heather Gately.
To unsubscribe, please just reply to this e-mail with Unsubscribe in the subject line.
View our privacy promise.
|
 |
|