Basically, the input xml file is getting generated as part of Coolgen output. Now the requirement is to break the main input file with several output files based on the conditions, that I have written above.
Now for this purpose, it has been proposed to handle this functionality through JCL only.So, I was wondering whether this can be achived with SORT utility, without writing any program.
If I have fixed number of files, for example, if I take 20 output files, can you please suggest how I can write the OUTFIL statements for them, since the record in each file has to start from <Upos> and should end at </UPOS>.Also, I can't use the skiprec or stopaft facility, since it's not known, how many records each output file will contain.Generally,in sort in the OUTFIL statements, I have used with include condition which is unique for a particular file.In this case, for all the output files, it should start at <Upos> and end with </Upos>.
Is there any facility where we can mention the starting position and ending position of a file, to be written?
suppose, for example START(1,6,CH,EQ,C'<UPOS>'), END(1,7,CH,EQ,C'</UPOS>')--is there any provision that we can use sort facility like that?Then the desired data will be written for a particular output file, including the records containing between the <upos> and </upos> statement.But again, data will be written for one output file.For the next output file how it will be written, because the input file has to point to the 2nd <upos>.
Hope, you are getting my point.