IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to append lines using SORT, Easytreive or COBOL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
scorp_rahul22
Currently Banned

New User


Joined: 06 Aug 2007
Posts: 42
Location: chennai

PostPosted: Wed Apr 09, 2008 6:06 pm
Reply with quote

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
View user's profile Send private message
scorp_rahul22
Currently Banned

New User


Joined: 06 Aug 2007
Posts: 42
Location: chennai

PostPosted: Thu Apr 10, 2008 1:34 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Apr 10, 2008 8:22 pm
Reply with quote

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
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Thu Apr 10, 2008 10:23 pm
Reply with quote

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
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Thu Apr 10, 2008 10:25 pm
Reply with quote

And DFSORT and Syncsort are normally considered utilities.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
Search our Forums:

Back to Top