Copy blocks of information between keywords.



Post anything related to mainframes (IBM & UNISYS) if not fit in any of the above categories

Copy blocks of information between keywords.

Postby danielgrgln » Thu Oct 19, 2017 1:09 am

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:
danielgrgln
 
Posts: 1
Joined: Thu Oct 19, 2017 12:51 am
Has thanked: 0 time
Been thanked: 0 time

Re: Copy blocks of information between keywords.

Postby prino » Thu Oct 19, 2017 2:17 am

Yes, there is a very easy way: You write a program to do it!
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
User avatar
prino
 
Posts: 641
Joined: Wed Mar 11, 2009 12:22 am
Location: Vilnius, Lithuania
Has thanked: 3 times
Been thanked: 29 times

Re: Copy blocks of information between keywords.

Postby NicC » Thu Oct 19, 2017 2:33 pm

Nothing to do with JCL, per se. Moving.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times


Return to All other Mainframe Topics

 


  • Related topics
    Replies
    Views
    Last post