MSCBSC 移動通信論壇
搜索
登錄注冊
網(wǎng)絡(luò)優(yōu)化工程師招聘專欄 4G/LTE通信工程師最新職位列表 通信實習(xí)生/應(yīng)屆生招聘職位

  • 閱讀:1720
  • 回復(fù):0
CDD指令集
stormt.tp
高級會員



 發(fā)短消息    關(guān)注Ta 

積分 1550
帖子 309
威望 5935 個
禮品券 0 個
專家指數(shù) 5
注冊 2009-9-8
專業(yè)方向  BSC
回答問題數(shù) 0
回答被采納數(shù) 0
回答采納率 0%
 
發(fā)表于 2012-01-09 09:50:26  只看樓主 
【資料名稱】:CDD指令集

【資料作者】:stormtp

【資料日期】:20120101

【資料語言】:中文

【資料格式】:DOC

【資料目錄和簡介】:

CDD指令集合Dim parainline(1, 7) As String
Dim slinetemp As String
Dim par As String
Dim parvalue As String
Dim lendelta As Integer
Dim parindex As Integer
Dim sresult As String
Dim shead As String
Dim k As Integer



Do While Not EOF(logid)

Line Input #logid, sline
sline = Trim$(sline)
DoEvents

If sline = "END" Then
Exit Do

ElseIf InStr(sline, "<") > 0 Then
Exit Do

ElseIf InStr(sline, "CELLDBPSTATE") Then

If Not EOF(logid) Then
Line Input #logid, slinetemp
If Trim$(slinetemp) = "END" Then Exit Do
If InStr(Trim$(slinetemp), "<") > 0 Then
nextcmd = True
Exit Do
End If
End If

parindex = 0
Do Until sline = ""
par = Trim$(Right$(sline, Len(sline) - InStrRev(sline, " ", , vbTextCompare)))
lendelta = Len(slinetemp) - InStrRev(sline, " ", , vbTextCompare)
If lendelta > 0 Then
parvalue = Trim$(Right$(slinetemp, lendelta))
Else
parvalue = ""
End If

slinetemp = RTrim$(Left$(slinetemp, InStrRev(sline, " ", , vbTextCompare)))
sline = RTrim$(Left$(sline, InStrRev(sline, " ", , vbTextCompare)))

parindex = parindex + 1
parainline(0, parindex) = par
parainline(1, parindex) = parvalue

Loop

If Trim$(sresult) <> "" Then
sresult = sresult & Chr(13) & Chr(10)
End If
sresult = sresult & exchid

For k = 0 To parindex - 1
If rlbcphead = False Then
If shead = "" Then shead = shead & "EXCHID"
shead = shead & "," & parainline(0, parindex - k)
End If
sresult = sresult & "," & parainline(1, parindex - k)
Next k

ElseIf InStr(sline, "SCTYPESSDESDL") > 0 Then

If Not EOF(logid) Then
Line Input #logid, slinetemp
If Trim$(slinetemp) = "END" Then Exit Do
If InStr(Trim$(slinetemp), "<") > 0 Then
nextcmd = True
Exit Do
End If
End If

parindex = 0
Do Until sline = ""
par = Trim$(Right$(sline, Len(sline) - InStrRev(sline, " ", , vbTextCompare)))
lendelta = Len(slinetemp) - InStrRev(sline, " ", , vbTextCompare)
If lendelta > 0 Then
parvalue = Trim$(Right$(slinetemp, lendelta))
Else
parvalue = ""
End If

slinetemp = RTrim$(Left$(slinetemp, InStrRev(sline, " ", , vbTextCompare)))
sline = RTrim$(Left$(sline, InStrRev(sline, " ", , vbTextCompare)))

parindex = parindex + 1
parainline(0, parindex) = par
parainline(1, parindex) = parvalue

Loop

For k = 0 To parindex - 1
If rlbcphead = False Then
If shead = "" Then shead = shead & "EXCHID"
shead = shead & "," & parainline(0, parindex - k)
End If
sresult = sresult & "," & parainline(1, parindex - k)
Next k


ElseIf InStr(sline, "BSPWRMINP") > 0 Then

If Not EOF(logid) Then
Line Input #logid, slinetemp
If Trim$(slinetemp) = "END" Then Exit Do
If InStr(Trim$(slinetemp), "<") > 0 Then
nextcmd = True
Exit Do
End If
End If

parindex = 0
Do Until sline = ""
par = Trim$(Right$(sline, Len(sline) - InStrRev(sline, " ", , vbTextCompare)))
lendelta = Len(slinetemp) - InStrRev(sline, " ", , vbTextCompare)
If lendelta > 0 Then
parvalue = Trim$(Right$(slinetemp, lendelta))
Else
parvalue = ""
End If

slinetemp = RTrim$(Left$(slinetemp, InStrRev(sline, " ", , vbTextCompare)))
sline = RTrim$(Left$(sline, InStrRev(sline, " ", , vbTextCompare)))

parindex = parindex + 1
parainline(0, parindex) = par
parainline(1, parindex) = parvalue

Loop

For k = 0 To parindex - 1
If rlbcphead = False Then
If shead = "" Then shead = shead & "EXCHID"
shead = shead & "," & parainline(0, parindex - k)
End If
sresult = sresult & "," & parainline(1, parindex - k)
Next k


rlbcphead = True

End If

Loop


Dim fnum As Integer
fnum = FreeFile

Open spath + "RLBCP.CSV" For Append As #fnum

If shead <> "" Then
If sresult <> "" Then
Print #fnum, shead & Chr(13) & Chr(10) & sresult
Else
Print #fnum, shead
End If

Else
If sresult <> "" Then
Print #fnum, sresult

End If

End If
Close #fnum



////////////////////////////////////////////////////////
////////////////////////////////////////////////////////
////////////////////////////////////////////////////////



Dim parainline(1, 9) As String
Dim slinetemp As String
Dim par As String
Dim parvalue As String
Dim lendelta As Integer
Dim parindex As Integer
Dim sresult As String
Dim shead As String
Dim k As Integer
Dim headline As String


Do While Not EOF(logid)

Line Input #logid, sline
sline = Trim$(sline)
DoEvents

If sline = "END" Then
Exit Do

ElseIf InStr(sline, "<") > 0 Then
Exit Do

ElseIf InStr(sline, "CELLCLSSTATE") > 0 Then
headline = sline

Do While Not EOF(logid)
Line Input #logid, slinetemp
DoEvents

If Trim$(slinetemp) <> "" Then

If Trim$(slinetemp) = "END" Then Exit Do
If InStr(Trim$(slinetemp), "<") > 0 Then
nextcmd = True
Exit Do
End If

parindex = 0
sline = headline
Do Until sline = ""
par = Trim$(Right$(sline, Len(sline) - InStrRev(sline, " ", , vbTextCompare)))
lendelta = Len(slinetemp) - InStrRev(sline, " ", , vbTextCompare)
If lendelta > 0 Then
parvalue = Trim$(Right$(slinetemp, lendelta))
Else
parvalue = ""
End If

slinetemp = RTrim$(Left$(slinetemp, InStrRev(sline, " ", , vbTextCompare)))
sline = RTrim$(Left$(sline, InStrRev(sline, " ", , vbTextCompare)))

parindex = parindex + 1
parainline(0, parindex) = par
parainline(1, parindex) = parvalue

Loop

If Trim$(sresult) <> "" Then
sresult = sresult & Chr(13) & Chr(10)
End If
sresult = sresult & exchid

For k = 0 To parindex - 1
If rllcphead = False Then
If shead = "" Then shead = shead & "EXCHID"
shead = shead & "," & parainline(0, parindex - k)
End If
sresult = sresult & "," & parainline(1, parindex - k)
Next k

rllcphead = True
End If
Loop

Exit Do
End If
Loop

Dim fnum As Integer
fnum = FreeFile

Open spath + "RLLCP.CSV" For Append As #fnum

If shead <> "" Then
If sresult <> "" Then
Print #fnum, shead & Chr(13) & Chr(10) & sresult
Else
Print #fnum, shead
End If

Else
If sresult <> "" Then
Print #fnum, sresult

End If

End If
Close #fnum



////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////

Dim parainlinec(1, 3) As String
Dim parainline(1, 7) As String
Dim slinetemp As String
Dim par As String
Dim parvalue As String
Dim lendelta As Integer
Dim parindex As Integer
Dim parindexc As Integer
Dim sresult As String
Dim shead As String
Dim k As Integer
Dim headline As String



Do While Not EOF(logid)

Line Input #logid, sline
sline = Trim$(sline)
DoEvents

If sline = "END" Then
Exit Do

ElseIf InStr(sline, "<") > 0 Then
Exit Do

ElseIf sline = "CELL" Then

If Not EOF(logid) Then
Line Input #logid, slinetemp
If Trim$(slinetemp) = "END" Then Exit Do
If InStr(Trim$(slinetemp), "<") > 0 Then
nextcmd = True
Exit Do
End If
End If

parindexc = 0
Do Until sline = ""
par = Trim$(Right$(sline, Len(sline) - InStrRev(sline, " ", , vbTextCompare)))
lendelta = Len(slinetemp) - InStrRev(sline, " ", , vbTextCompare)
If lendelta > 0 Then
parvalue = Trim$(Right$(slinetemp, lendelta))
Else
parvalue = ""
End If

slinetemp = RTrim$(Left$(slinetemp, InStrRev(sline, " ", , vbTextCompare)))
sline = RTrim$(Left$(sline, InStrRev(sline, " ", , vbTextCompare)))

parindexc = parindexc + 1
parainlinec(0, parindexc) = par
parainlinec(1, parindexc) = parvalue

Loop


ElseIf InStr(sline, "CHGRHSN") > 0 Then

headline = sline

Do While Not EOF(logid)
Line Input #logid, slinetemp
DoEvents

If Trim$(slinetemp) = "" Then Exit Do

If Trim$(slinetemp) = "END" Then Exit Do
If InStr(Trim$(slinetemp), "<") > 0 Then
nextcmd = True
Exit Do
End If

parindex = 0
sline = headline
Do Until sline = ""
par = Trim$(Right$(sline, Len(sline) - InStrRev(sline, " ", , vbTextCompare)))
lendelta = Len(slinetemp) - InStrRev(sline, " ", , vbTextCompare)
If lendelta > 0 Then
parvalue = Trim$(Right$(slinetemp, lendelta))
Else
parvalue = ""
End If

slinetemp = RTrim$(Left$(slinetemp, InStrRev(sline, " ", , vbTextCompare)))
sline = RTrim$(Left$(sline, InStrRev(sline, " ", , vbTextCompare)))

parindex = parindex + 1
parainline(0, parindex) = par
parainline(1, parindex) = parvalue

Loop

If Trim$(sresult) <> "" Then
sresult = sresult & Chr(13) & Chr(10)
End If
sresult = sresult & exchid

For k = 0 To parindexc - 1
If rlchphead = False Then
If shead = "" Then shead = shead & "EXCHID"
shead = shead & "," & parainlinec(0, parindexc - k)
End If
sresult = sresult & "," & parainlinec(1, parindexc - k)
Next k

For k = 0 To parindex - 1
If rlchphead = False Then
If shead = "" Then shead = shead & "EXCHID"
shead = shead & "," & parainline(0, parindex - k)
End If
sresult = sresult & "," & parainline(1, parindex - k)
Next k

rlchphead = True

Loop
If Trim$(slinetemp) = "END" Then Exit Do
If InStr(Trim$(slinetemp), "<") > 0 Then
nextcmd = True
Exit Do
End If
End If

Loop


Dim fnum As Integer
fnum = FreeFile

Open spath + "RLCHP.CSV" For Append As #fnum

If shead <> "" Then
If sresult <> "" Then
Print #fnum, shead & Chr(13) & Chr(10) & sresult
Else
Print #fnum, shead
End If

Else
If sresult <> "" Then
Print #fnum, sresult

End If

End If
Close #fnum

查看積分策略說明
附件下載列表:
2012-1-9 09:50:26  下載次數(shù): 1
cdd.rar (1.05 KB)
掃碼關(guān)注5G通信官方公眾號,免費(fèi)領(lǐng)取以下5G精品資料
  • 1、回復(fù)“YD5GAI”免費(fèi)領(lǐng)取《中國移動:5G網(wǎng)絡(luò)AI應(yīng)用典型場景技術(shù)解決方案白皮書
  • 2、回復(fù)“5G6G”免費(fèi)領(lǐng)取《5G_6G毫米波測試技術(shù)白皮書-2022_03-21
  • 3、回復(fù)“YD6G”免費(fèi)領(lǐng)取《中國移動:6G至簡無線接入網(wǎng)白皮書
  • 4、回復(fù)“LTBPS”免費(fèi)領(lǐng)取《《中國聯(lián)通5G終端白皮書》
  • 5、回復(fù)“ZGDX”免費(fèi)領(lǐng)取《中國電信5G NTN技術(shù)白皮書
  • 6、回復(fù)“TXSB”免費(fèi)領(lǐng)取《通信設(shè)備安裝工程施工工藝圖解
  • 7、回復(fù)“YDSL”免費(fèi)領(lǐng)取《中國移動算力并網(wǎng)白皮書
  • 8、回復(fù)“5GX3”免費(fèi)領(lǐng)取《 R16 23501-g60 5G的系統(tǒng)架構(gòu)1
  • 對本帖內(nèi)容的看法? 我要點(diǎn)評

     
    [充值威望,立即自動到帳] [VIP貴賓權(quán)限+威望套餐] 另有大量優(yōu)惠贈送活動,請光臨充值中心
    充值擁有大量的威望和最高的下載權(quán)限,下載站內(nèi)資料無憂

    快速回復(fù)主題    
    標(biāo)題
    內(nèi)容
     上傳資料請點(diǎn)左側(cè)【添加附件】

    (勾選中文件為要刪除文件)


    當(dāng)前時區(qū) GMT+8, 現(xiàn)在時間是 2025-01-25 20:46:47
    渝ICP備11001752號  Copyright @ 2006-2016 mscbsc.com  本站統(tǒng)一服務(wù)郵箱:mscbsc@163.com

    Processed in 0.621522 second(s), 15 queries , Gzip enabled
    TOP
    清除 Cookies - 聯(lián)系我們 - 移動通信網(wǎng) - 移動通信論壇 - 通信招聘網(wǎng) - Archiver