Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 SORT BUT RETAIN HIGHEST VALUE ON NON-... leondan22 DFSORT/ICETOOL 2 Thu Dec 14, 2017 8:13 pm
No new posts Extract record for change in combinat... Trinadh DFSORT/ICETOOL 6 Thu Nov 23, 2017 3:32 pm
This topic is locked: you cannot edit posts or make replies. Cobol to fetch the content by using s... arunc55 COBOL Programming 4 Fri Nov 17, 2017 1:25 pm
No new posts VBS and VB, COBOL syntax is the same ... natt.sut COBOL Programming 3 Sun Nov 12, 2017 6:36 am
No new posts JOINKEYS Paired and Unpaired Sort on ... MFwhiz DFSORT/ICETOOL 7 Tue Nov 07, 2017 2:46 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us