hi I have the following sql statement linking to AS400 table:
The issue I am having is that AGIDATA.AGSVPFDSR is the table and AG06023DW1 is the member. This is giving me an error for connection. If I do it without AG06023DW1 and just do AGIDATA.AGSVPFDSR, I have no problems.
I am doing this in access as a Pass-through query.
Can someone please tell me how do I add the member name which has all the data in it to the query.
Thanks
Zishan
Code:
SELECT
ALL SUBSTR(DSRFLAT,71,9) AS SSN, SUBSTR(DSRFLAT,21,2) AS LOANNBR,SUBSTR(DSRFLAT,342,1) AS DISBNBR, SUBSTR(DSRFLAT,4,19) AS CLIENTID, SUBSTR(DSRFLAT,334,8) AS RLSDATE1, SUBSTR(DSRFLAT,383,7) AS
DISBAMT1, SUBSTR(DSRFLAT,390,7) AS ORIGFEE,SUBSTR(DSRFLAT,397,7) AS GUARFEE, SUBSTR(DSRFLAT,444,7) AS
FEESPAID, SUBSTR(DSRFLAT,404,7) AS NETDISB,SUBSTR(DSRFLAT,296,2) AS LOANTYPE FROM AGIDATA.AGSVPFDSR.AG06023DW1 T01 WHERE SUBSTR(DSRFLAT,71,9) > '000000' ORDER BY SSN ASC, LOANNBR ASC, DISBNBR ASC
The issue I am having is that AGIDATA.AGSVPFDSR is the table and AG06023DW1 is the member. This is giving me an error for connection. If I do it without AG06023DW1 and just do AGIDATA.AGSVPFDSR, I have no problems.
I am doing this in access as a Pass-through query.
Can someone please tell me how do I add the member name which has all the data in it to the query.
Thanks
Zishan