Cweinber21
Technical User
Hello,
I was wondering if anyone could assist me in some REXX coding. Here is the scenario, I'm using JCL to dump SAR information into a dataset and then I'm wanting to grab only certain information from the dataset. There is a particular beginning word that I know is in the dataset which is on line 255, so I'm doing a select statement with a when pos('BEGIN',in.i) > 0. I'm at the beginning of the line I would like to output the information from to another dataset. How do I output this line and the next 10? I figured I would need a counter of some sort but I haven't been able to figure this one out. Is there a way to delete all lines before 255 and all lines after 234? Any help would be greatly appreciated. Thanks, Chris
I was wondering if anyone could assist me in some REXX coding. Here is the scenario, I'm using JCL to dump SAR information into a dataset and then I'm wanting to grab only certain information from the dataset. There is a particular beginning word that I know is in the dataset which is on line 255, so I'm doing a select statement with a when pos('BEGIN',in.i) > 0. I'm at the beginning of the line I would like to output the information from to another dataset. How do I output this line and the next 10? I figured I would need a counter of some sort but I haven't been able to figure this one out. Is there a way to delete all lines before 255 and all lines after 234? Any help would be greatly appreciated. Thanks, Chris