Page 1 of 1

Copy blocks of information between keywords.

PostPosted: Thu Oct 19, 2017 1:09 am
by danielgrgln
Hello Folks,
Is there a way to copy blocks information where the source is a Dataset and then when a certain occurrence appears it starts to send the information to another data set until it detects an another keyword.

IE:
it reads until the following shows up on dsn:
DEADLOCK ANALYSIS REPORT - LOCK MANAGER IS PI
It starts to copy the information to another dsn.
and it stops when it detects
DEADLOCK ANALYSIS REPORT - END OF REPORT

the catch is: it will happen a lot of times when it will read the source dsn.

Is it possible through JCL Utility or a REXX ???

Thanks in advance.
:mrgreen:

Re: Copy blocks of information between keywords.

PostPosted: Thu Oct 19, 2017 2:17 am
by prino
Yes, there is a very easy way: You write a program to do it!

Re: Copy blocks of information between keywords.

PostPosted: Thu Oct 19, 2017 2:33 pm
by NicC
Nothing to do with JCL, per se. Moving.