View previous topic :: View next topic
|
Author |
Message |
abby.qiong.zhang
New User
Joined: 07 Jun 2012 Posts: 26 Location: China
|
|
|
|
If sort can help do this, copy value from one line and put it into another line?
I would like to copy value in col 287-288 from line D and put it at the end of line C, line D is always follow with line C, and there are many kind of other records as well which need to keep the same.
Let me give an example:
Input looks like this
Code: |
Column1......................col 287-288......col512
Ctestdata..............................................
D.................................CH...........................
................
................
|
Here's my output
Code: |
column1................................................col512col513-514
Ctestdata........................................................CH
D....................................................................
|
|
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
You've already had tasks recently which you should be able to apply to do this.
Think about how you'd do it in COBOL. Then think about what you don't have in SORT, and what you have to do instead. You've already had it, but "going in the other direction". This is the same. You need to get to recognise when you know how to do something. |
|
Back to top |
|
|
|