View previous topic :: View next topic
|
Author |
Message |
scorp_rahul22 Currently Banned New User
Joined: 06 Aug 2007 Posts: 42 Location: chennai
|
|
|
|
Is there any way to copy lines . I want to append line number 3 with 1 and 2 and line number 6 with 4 and 5.
Where (................) resembles SPACES
1==>Bbbbbbbbbbbbbbbbbbbbbbbbb
2==>Aaaaaaaaaaaaaaaaaaaaaaaaa
3==>............................................cccccccccccccccc
4==>Ddddddddddddddddddddddddd
5==>Eeeeeeeeeeeeeeeeeeeeeeeee
6==>............................................ffffffffffffffffffffffff
I want to copy like
Bbbbbbbbbbbbbbbbbbbbbbbbbcccccccccccccccccc
Aaaaaaaaaaaaaaaaaaaaaaaaacccccccccccccccccc
I have to only use OSRT or easutreive, NO ICETOOL or any other utility is preferred
The following field will always start from column number 1 ad goes till 100
Bbbbbbbbbbbbbbbbbbbbbbbbb ------> 100
Aaaaaaaaaaaaaaaaaaaaaaaaa ------> 100
and
cccccccccccccccccccccccccccccc
it will always start from column number 101 to 200 |
|
Back to top |
|
|
scorp_rahul22 Currently Banned New User
Joined: 06 Aug 2007 Posts: 42 Location: chennai
|
|
|
|
Is there any way to copy lines . I want to append line number 3 with 1 and 2 and line number 6 with 4 and 5.
Where (................) resembles SPACES
1==>Bbbbbbbbbbbbbbbbbbbbbbbbb
2==>Aaaaaaaaaaaaaaaaaaaaaaaaa
3==>............................................cccccccccccccccc
4==>Ddddddddddddddddddddddddd
5==>Eeeeeeeeeeeeeeeeeeeeeeeee
6==>............................................ffffffffffffffffffffffff
I want to copy like
Bbbbbbbbbbbbbbbbbbbbbbbbbcccccccccccccccccc
Aaaaaaaaaaaaaaaaaaaaaaaaacccccccccccccccccc
I have to only use OSRT or easutreiveor COBOL, NO ICETOOL or any other utility is preferred
The following field will always start from column number 1 ad goes till 100
Bbbbbbbbbbbbbbbbbbbbbbbbb ------> 100
Aaaaaaaaaaaaaaaaaaaaaaaaa ------> 100
and
cccccccccccccccccccccccccccccc
it will always start from column number 101 to 200 |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
So, just how many times will you post this same question? I believe it has come up 3 times so far. . .
Posting the same question multiple times is not acceptable in the forums - it only causes clutter and confusion.
Reply back to this topic and tell me which one you want to keep. I'll delete the others. |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
scorp_rahul22 wrote: |
I want to append line number 3 with 1 and 2 and line number 6 with 4 and 5. |
Read into fielda, read into fieldb, read into fieldc, move fieldc to the end of fielda, write fielda, move fieldc to the end of fieldb, write fieldb, repeat once.
Quote: |
I have to only use OSRT or easutreiveor COBOL, NO ICETOOL or any other utility is preferred |
I'll assume by OSRT you meant SORT and by easutreiveor you meant CA-Easytrieve. And COBOL is allowed?
Now for the stupid part, ICETOOL is a slightly different part of DFSort and is included with DFSORT and has access to a great many of the DFSort functionality. The same goes for Syncsort and its Synctool, which may actually be the sort you are currently using depending on the existence of aliases or not.... |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
And DFSORT and Syncsort are normally considered utilities. |
|
Back to top |
|
|
|