home *** CD-ROM | disk | FTP | other *** search
- |******************************************************************************
- |* tssma1103gl 0 VRC B40C c4 gbc1
- |* tssma110 3gl
- |* kingsley
- |* 23-08-08 [16:16]
- |******************************************************************************
- |* Script Type: 0
- |******************************************************************************
-
- table ttssma110
-
- function main()
- {
-
- long comp,seq.id,seq.id1,count1,applock,ret,seq.id2,seq.id3
- String ftpshell(500)
- comp=lval(argv$(1))
-
- count1 = 0
-
- String str(500),str1(100),str2(100),str3(100),file.path(50),file.path1(50),file.path2(50),file.path3(50)
- file.path = argv$(2)&"/tssma110"&str$(comp)&"1"
- file.path2 = argv$(2)&"/tssma110"&str$(comp)&"2"
- file.path3 = argv$(2)&"/tssma110"&str$(comp)&"3"
- file.path1 = argv$(2)&"/tssma110"&str$(comp)&"3.log"
-
- seq.id = seq.open(file.path,"w")
- seq.id2 = seq.open(file.path2,"w")
- seq.id3 = seq.open(file.path3,"w")
- seq.id1 = seq.open(file.path1,"w")
- str1 =dte$()
- select tssma110.cloc,tssma110.cuno,tssma110.telp,tssma110.tefx,tssma110.care,tssma110.cceb,tssma110.emno,tssma110.refe,tssma110.pstc,tssma110.creg,tssma110.desc,tssma110.plan,tssma110.wsts,tssma110.telx
- from tssma110
- where tssma110._compnr = :comp
- and tssma110._index1 inrange {""} and {"ZZZZZZZZZZ"}
- selectdo
- count1 = count1 + 1
- str = concat$("^",tssma110.cloc,tssma110.cuno,tssma110.telp,tssma110.tefx,tssma110.telx,tssma110.care,tssma110.cceb,tssma110.emno,tssma110.refe,tssma110.pstc,tssma110.creg,tssma110.wsts,tssma110.desc,tssma110.plan)
- if (count1 < 800000) then
- seq.puts(str,seq.id)
- else
- if (count1 < 1600000) then
- seq.puts(str,seq.id2)
- else
- seq.puts(str,seq.id3)
- endif
- endif
-
- endselect
- seq.close(seq.id)
- seq.close(seq.id2)
- seq.close(seq.id3)
- str2 = dte$()
- str3 = concat$("|",str1(1;2)&str1(5;2)&str1(3;2)&" "&str1(7;2)&":"&str1(9;2)&":"&str1(11;2),count1,str2(1;2)&str2(5;2)&str2(3;2)&" "&str2(7;2)&":"&str2(9;2)&":"&str2(11;2),"tssma110",comp)
- seq.puts(str3,seq.id1)
- seq.close(seq.id1)
- ftpshell = "sh /mna/baan/bse/nbin/BaanCustShells/webbatch3glftp.sh "&argv$(2)&" "&argv$(3)&" "&argv$(4)&" "&argv$(5)&" "&argv$(6)&" "&argv$(1)&"1"
- ret = shell(ftpshell,64)
- ftpshell = "sh /mna/baan/bse/nbin/BaanCustShells/webbatch3glftp.sh "&argv$(2)&" "&argv$(3)&" "&argv$(4)&" "&argv$(5)&" "&argv$(6)&" "&argv$(1)&"2"
- ret = shell(ftpshell,64)
- ftpshell = "sh /mna/baan/bse/nbin/BaanCustShells/webbatch3glftp.sh "&argv$(2)&" "&argv$(3)&" "&argv$(4)&" "&argv$(5)&" "&argv$(6)&" "&argv$(1)&"3"
- ret = shell(ftpshell,64)
-
-
-
-
- }
-