Undefined record type is found in file QSQLSRC

Profile: PreetMaan
Tags:
AS/400
CL Program
I have one CL program CMS002CL running in production system,this program Copy the QSQLSRC source physical file from production library to QTEMP/QSQLSRC with one member say MBR1
CPYF FROMFILE(&OBJLIB/&SRCFIL) +
TOFILE(QTEMP/&SRCFIL) FROMMBR(&SRCMBR) +
TOMBR(*FROMMBR) CRTFILE(*YES)
and then doing
OVRDBF FILE(QSQLSRC) TOFILE(QTEMP/&SRCFIL) +
MBR(&SRCMBR)
Call PGM(CMS002) Parm(parm1,parm2,parm3)
And calling the RPGLE Pogram CMS002 which is reading the QSQLSRC file. It is working perfectly in Production but when it is copying the QSQLSRC source physical file from my personal library to QTEMP/QSQLSRC with same member MBR1 it is sending exception Undefined record type found in QSQLSRC. I know the reason why it is sending this exception because there is some difference b/w both the Source Physical file. why I am saying this is because I copied the object of QSQLSRC from production to my personal library and then ran the same program and it is working fine but I am not able to make out the difference. Both the file have same record format length 112 everything is same. I would like to know the reason behind it. Please share your thoughts on this issue.

1 Reply to this discussion

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when other members reply.
  • ToddN2000
    Are these both labeled with the same member type CLLE? CLP?  I have seen the member type get changed on a CPYF for some reason in the past.
    131,645 pointsBadges:
    report

Forgot Password

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

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: