Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to append lines using SORT, Easytreive or COBOL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to append lines using SORT, Easytreive or COBOL
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    Post subject: Appending lines
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

Site Director


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

PostPosted: Thu Apr 10, 2008 8:22 pm    Post subject:
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: 2150
Location: At my coffee table

PostPosted: Thu Apr 10, 2008 10:23 pm    Post subject: Re: Appending lines
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts Innovations in Your Mainframe Sort Arun Raj PC Guides & IT News 4 Wed Mar 15, 2017 10:38 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts SORT requirement sjiraga COBOL Programming 6 Thu Mar 09, 2017 9:11 pm
No new posts SORT to append Month and YEAR in MMYY... tisamf DFSORT/ICETOOL 1 Wed Mar 08, 2017 4:46 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us