|
<<SNIP>> IBM's workaround is to copy the V7R1 version of CPYTOIMPF
to the QSYSV6R1M0, replacing the current version. This has been
completed, CPYTOIMPF target release *PRV compiles are now working.
"The CRTCLPGM is working correctly. The 7.1 PTF to add the ORDERBY
parameter updated the CPYTOIMPF command definition (*CMD) object in
library QSYS. When compiling a CL source member using the CRTCLPGM
command and specifying (or defaulting to) TGTRLS(*CURRENT), the *CMD
in library QSYS is used. However, when running CRTCLPGM with
TGTRLS(*PRV) or TGTRLS(V6R1M0), CRTCLPGM will look first in library
QSYSV6R1M0 to see if this in an IBM command that was shipped with IBM
i 6.1 or an IBM licensed program that runs on IBM 6.1. The idea is to
verify that the customer is not using function that does not exist on
the 6.1 system that the CL is being compiled to run on. The CL
compiler has no way to know if the target 6.1 system has the 6.1 PTF
loaded that added the ORDERBY parameter to CPYTOIMPF. If the program
were allowed to compile and the CL program was taken to a 6.1 system
where the CPYTOIMPF command did not have an ORDERBY parameter, the CL
program would fail at runtime with CPF0001 for the CPYTOIMPF along
with a diagnostic message that the ORDERBY parameter is not valid for
CPYTOIMPF.
There is a work around if the customer knows that the 6.1 system
where the CL program will be restored has the 6.1 PTF applied that
added the ORDERBY parameter.
1) Rename the existing CPYTOIMPF command in QSYSV6R1M0 just in case
it is needed later:
RNMOBJ OBJ(QSYSV6R1M0/CPYTOIMPF) OBJTYPE(*CMD) NEWOBJ(CPYTOIMPF2)
2) Copy the CPYTOIMPF command in library QSYS to library QSYSV6R1M0:
CRTDUPOBJ CPYTOIMPF FROMLIB(QSYS) OBJTYPE(*CMD) TOLIB(QSYSV6R1M0)
Once this is done, any parameters valid for CPYTOIMPF command in 7.1
will be allowed when the command is used in CL source compiled for
TGTRLS(V6R1M0). It will be up to the customer to not use any other
parameters which will not be supported on their 6.1 system. "
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.