W dniu 02.02.2024 o 16:34, Sri h Kolusu pisze:
Sometimes I need clone text column.
Radoslaw,

You can try the approach listed here .

https://www.ibm.com/docs/en/zos/3.1.0?topic=commands-o-okoverlay-lines


The only caveat is you just need to REPEAT the data and use )) to Push the data 
to your desired column and then use OVERLAY

for example

Original Data

000001 AAAA
000002 BBBB
000003 CCCC
000004 DDDD
000005 EEEE
000006 $$$$$$$$$$ -end of data


Copy/Repeat the data

CC     AAAA
000002 BBBB
000003 CCCC
000004 DDDD
CC     EEEE
A      $$$$$$$$$$ -end of data

Shift the data to desired column say (10)

000001 AAAA
000002 BBBB
000003 CCCC
000004 DDDD
000005 EEEE
000006 $$$$$$$$$$ -end of data
))9    AAAA
000008 BBBB
000009 CCCC
000010 DDDD
))     EEEE

Now do the MOVE and OVERLAY of the Data

MM     AAAA
000002 BBBB
000003 CCCC
000004 DDDD
MM     EEEE
000006 $$$$$$$$$$ -end of data
   OO            AAAA
000008          BBBB
000009          CCCC
000010          DDDD
   OO            EEEE


The data now is

----+----1----+----2----+
$$$$$$$$$$ -end of data
AAAA     AAAA
BBBB     BBBB
CCCC     CCCC
DDDD     DDDD
EEEE     EEEE

Great!
I frequently use )) and overlay, but never for blocks (I mean single line copied with O on multiple lines).

In the free time I'll also look for something in CBT.

Thank you, gentlemen!

--
Radoslaw Skorupka
Lodz, Poland

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to