[```
I have to create getTags so that it populates xml sample as below where the UCIDATA
have multiple entries.
I have to pass getag values so that the UCIDATA tags alone gets replicated twice or thrice as per the no.of UCI values.how do I do that?
I declared a cursor with srcid from a table which is a unique value for each of the UCI values entered in that table.
EXEC SQL DECLARE GET_UCI CURSOR
FOR
SELECT MNUSU_SRCID,MNUSU_UCI,MNUSU_LEI,MNUSU_SIA_FLG,
MNUSU_INT_PCT_SHARE
FROM MF_NFU_UCI_UPDATES_STG
WHERE MNUSU_SRCID = :in_srcid
int fetchUCIDATA()
{
EXEC SQL OPEN GET_UCI;
EXEC SQL FETCH GET_UCI INTO :MNUSU_UCI:ind_MNUSU_UCI,:MNUSU_LEI:ind_MNUSU_LEI,:MNUSU_SIA_FLG:ind_MNUSU_SIA_FLG,:MNUSU_INT_PCT_SHARE:ind_MNUSU_INT_PCT_SHARE;
return ( sqlca.sqlcode);
}
getTags_1( UCI, ( char * ) MNUSU_UCI.arr, tagUCI );
getTags_1( SIAFLG, ( char * ) MNUSU_SIA_FLG.arr, tagSIAFlag );
getTags_1( INTPCT, ( char * ) MNUSU_INT_PCT_SHARE.arr, tagINTPCT );
getTags_1(LEI, ( char * ) MNUSU_LEI.arr,tagLEI );
getTags_3( UCIData ,tagUCI,tagSIAFlag,tagINTPCT,tagUCIData);
getTags_2(CDICDATA,tagLEI,tagUCIData,tagCDICDATA);
t_UCIData = t_UCIData||UCIData (1 to 11 times)
Please help me with the right syntax and logic to loop.How to pass the syntax here so that the UCIDATA tags gets concatenated for multiple UCI values.