Please start a new separate thread
for this new question.
In the new thread, give the RECFM and LRECL of your input file and clarify the following:
I have one file Contain 3000 lines of data .( that is not records)
What do you mean by "not records"? Are there multiple lines in a record? Are line1 and line2 in the same record or in different records?
Do you only have one ST/SE group that you want to extract or can there be multiple ST/SE groups?
Is the situation that ST appears in the first record of the group in positions 1-2, 037159 appears in the second record of the group in positions 7-12 and SE appears in the last record of the group in positions 1-2? If not, what exactly is the situation?