Copy blocks of information between keywords.

Post anything related to mainframes (IBM & UNISYS) if not fit in any of the above categories
danielgrgln
Posts: 1
Joined: Thu Oct 19, 2017 12:51 am
Skillset: IMS System Support
Referer: Google

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:

User avatar
prino
Posts: 641
Joined: Wed Mar 11, 2009 12:22 am
Skillset: PL/I - CICS - DB2 - IDMS - REXX - JCL, most in excess of three decades
Referer: Google
Location: Vilnius, Lithuania
Contact:

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

NicC
Global moderator
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Skillset: JCL, PL/1, Rexx, Utilities and to a lesser extent (i.e. I have programmed using them) COBOL,DB2,IMS
Referer: Google
Location: Pushing up the daisies (almost)

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


  • Similar Topics
    Replies
    Views
    Last post