I have a data file as follows:
A11111 1xxxxxxxxxxxxxxxxxxxxxxxxxxx
B11111 2xxxxxxxxxxxxxxxxxxxxxxxxxxx
C11111 3xxxxxxxxxxxxxxxxxxxxxxxxxxx
D11111 4xxxxxxxxxxxxxxxxxxxxxxxxxxx
sdfsdf
sdfsdf
sdfsdf
sdfsdf
A22222 1xxxxxxxxxxxxxxxxxxxxxxxxxxx
B22222 2xxxxxxxxxxxxxxxxxxxxxxxxxxx
C22222 3xxxxxxxxxxxxxxxxxxxxxxxxxxx
D22222 4xxxxxxxxxxxxxxxxxxxxxxxxxxx
sdfsdf
sdfsdf
sdfsdf
sdfsdf
A33333 1xxxxxxxxxxxxxxxxxxxxxxxxxxx
B33333 2xxxxxxxxxxxxxxxxxxxxxxxxxxx
C33333 3xxxxxxxxxxxxxxxxxxxxxxxxxxx
D33333 4xxxxxxxxxxxxxxxxxxxxxxxxxxx
sdfsdf
sdfsdf
sdfsdf
sdfsdf
I want to extract a group of records that begin with A2222
and all records that follow until A3333
Thanks for your help
A11111 1xxxxxxxxxxxxxxxxxxxxxxxxxxx
B11111 2xxxxxxxxxxxxxxxxxxxxxxxxxxx
C11111 3xxxxxxxxxxxxxxxxxxxxxxxxxxx
D11111 4xxxxxxxxxxxxxxxxxxxxxxxxxxx
sdfsdf
sdfsdf
sdfsdf
sdfsdf
A22222 1xxxxxxxxxxxxxxxxxxxxxxxxxxx
B22222 2xxxxxxxxxxxxxxxxxxxxxxxxxxx
C22222 3xxxxxxxxxxxxxxxxxxxxxxxxxxx
D22222 4xxxxxxxxxxxxxxxxxxxxxxxxxxx
sdfsdf
sdfsdf
sdfsdf
sdfsdf
A33333 1xxxxxxxxxxxxxxxxxxxxxxxxxxx
B33333 2xxxxxxxxxxxxxxxxxxxxxxxxxxx
C33333 3xxxxxxxxxxxxxxxxxxxxxxxxxxx
D33333 4xxxxxxxxxxxxxxxxxxxxxxxxxxx
sdfsdf
sdfsdf
sdfsdf
sdfsdf
I want to extract a group of records that begin with A2222
and all records that follow until A3333
Thanks for your help