Select next record based on previous record
Posted: Wed Dec 31, 2008 4:14 pm
I have a file with 10 records that looks like this (the second line in each set has all leading blanks) for example:
Can I used ICETOOL or DFSORT to split it out into 2 files so the two files look as follows:
File1 has all 0304 records and the record following it:
file2 should have all 0301 records and the record following it:
Thanks for the help.
030100010000000012345678787877
abcdef
030400020000000067676767678787
asdkjlkjlkajsdlkj
030100010000000012345678787877
asdkjlkjlkajsdlkjfgfgfgfgfg
030100010000000012345678787877
abcdef
030400020000000067676767678787
dfdfdfdfdfdfdfdfdfdf
abcdef
030400020000000067676767678787
asdkjlkjlkajsdlkj
030100010000000012345678787877
asdkjlkjlkajsdlkjfgfgfgfgfg
030100010000000012345678787877
abcdef
030400020000000067676767678787
dfdfdfdfdfdfdfdfdfdf
Can I used ICETOOL or DFSORT to split it out into 2 files so the two files look as follows:
File1 has all 0304 records and the record following it:
030400020000000067676767678787
asdkjlkjlkajsdlkj
030400020000000067676767678787
dfdfdfdfdfdfdfdfdfdf
asdkjlkjlkajsdlkj
030400020000000067676767678787
dfdfdfdfdfdfdfdfdfdf
file2 should have all 0301 records and the record following it:
030100010000000012345678787877
abcdef
030100010000000012345678787877
asdkjlkjlkajsdlkjfgfgfgfgfg
030100010000000012345678787877
abcdef
abcdef
030100010000000012345678787877
asdkjlkjlkajsdlkjfgfgfgfgfg
030100010000000012345678787877
abcdef
Thanks for the help.