insert into afw80 (
    wseq, cls, iseq80, ktktcd, cucd, cuscd, vseq,
    gdflg, jdat, ydat,
    climit, spktcd,
    cudcd, dcubcd, cuslip2, bbno, com, jmcat,
    dtxt1, dtxt2, ltxt1, ltxt2,
    vlin, jan, ijan, gdjnm, gdjstnd,
    gdcnum, gdbnum, gdstun, gdcls9,
    mvpno, cst, sal, gdcst,
    pkbn1, pkbn2, cstflg
) values (
    :wseq, '0', :iseq80, :ktktcd, :cucd, :cuscd, :vseq,
    :gdflg, to_date(:jdat,'yyyy/mm/dd'), to_date(:ydat,'yyyy/mm/dd'),
    to_date(:climit,'yyyy/mm/dd'), :spktcd,
    :cudcd, :dcubcd, :cuslip2, :bbno, :com, decode(nvl(:jmcat,'1'),'2',nvl(:jmcat,'1'),nvl(:jmcat2,'1')),
    :dtxt1, :dtxt2, :ltxt1, :ltxt2,
    :vlin, :jan, :ijan, :gdjnm, :gdjstnd,
    :gdcnum, :gdbnum, :gdstun, :gdcls9,
    :mvpno, :cst, :sal, :gdcst,
    :pkbn1, :pkbn2, :cstflg
)