Searching the data
Posted: Fri Jul 21, 2006 2:06 pm
hi,
I just joined the forum, I have a very strange request
This is what i need to do:
I have data coming only in one column, I need to pull out the data from inside the column like this:
In the last row I finish on FindNext(ACB1), here i need to search for rule name $POUND(ACB1) and bring it to join it right below FINDNEXT(KDEP).
the concept is like this I have a txt file and need to find a way to search for $POUND(AC**)(or it can be $POUND(ACB) OR $POUND(A**) and cut the next four or five rows of data till i hit the next FINDNEXT(ADE) and have it to come back and join below FINDNEXT(ACB1).
Its like we ran out of space below could not attach any more data, we needed to use FINDNEXT(name of the rule) so that we could search for this rule and attach it at later point. So if the rule is prefixed with $POUND, we need to find if it matches the suffix of FINDNEXT and attach the record there
$POUND(PK**)
ABCDES ssfed Record kp
ID(4930**) READ WRITE ACESS
PQ(5490303)
GPW(23232)
PID(kfeas) FINDNEXT(KDEP)
$POUND(KDE)
ABCDES dke Record po
ID(5940**) READ WRITE ACESS
PQ(5493)
GPW(29928)
PID(kdew) FINDNEXT(ACB1)
Thanks, Craig R
I just joined the forum, I have a very strange request
This is what i need to do:
I have data coming only in one column, I need to pull out the data from inside the column like this:
In the last row I finish on FindNext(ACB1), here i need to search for rule name $POUND(ACB1) and bring it to join it right below FINDNEXT(KDEP).
the concept is like this I have a txt file and need to find a way to search for $POUND(AC**)(or it can be $POUND(ACB) OR $POUND(A**) and cut the next four or five rows of data till i hit the next FINDNEXT(ADE) and have it to come back and join below FINDNEXT(ACB1).
Its like we ran out of space below could not attach any more data, we needed to use FINDNEXT(name of the rule) so that we could search for this rule and attach it at later point. So if the rule is prefixed with $POUND, we need to find if it matches the suffix of FINDNEXT and attach the record there
$POUND(PK**)
ABCDES ssfed Record kp
ID(4930**) READ WRITE ACESS
PQ(5490303)
GPW(23232)
PID(kfeas) FINDNEXT(KDEP)
$POUND(KDE)
ABCDES dke Record po
ID(5940**) READ WRITE ACESS
PQ(5493)
GPW(29928)
PID(kdew) FINDNEXT(ACB1)
Thanks, Craig R