Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Loop parse command

Status
Not open for further replies.

joeb5110

Technical User
May 8, 2009
42
0
0
US
I can't figure out how to use the PARSE VALUE WITH command on multiple lines.
I have this command:
PARSE VALUE data WITH "0013" port .
SAY "Error 0013 on port " port

It works fine on the first instance, but not on multiple.
The output it's reading is:
0001 0006 0020 02/13/13 07:14:00
0002 0006 0114 02/13/13 07:18:00
0003 0012 042416 02/13/13 07:15:00
0004 0013 081100 02/13/13 07:15:00
0005 0013 093000 02/13/13 07:15:00
0006 0025 061700 02/13/13 07:16:00

I've tried running the command on the number of lines of data,
but it only repeats the first instance (in this example "081100"
will get reported 6 times).

Any help is appreciated.
 
This is resolved, but I don't know how to mark it as such.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top