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
 

 

SORT help - Copy a field from one line to another line

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
abby.qiong.zhang

New User


Joined: 07 Jun 2012
Posts: 26
Location: China

PostPosted: Wed May 07, 2014 12:37 pm    Post subject: SORT help - Copy a field from one line to another line
Reply with quote

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

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Wed May 07, 2014 1:21 pm    Post subject: Reply to: SORT help - Copy a field from one line to another
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to change 'K' or 'M' use Sort vice_versa DFSORT/ICETOOL 5 Thu May 18, 2017 7:11 am
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
This topic is locked: you cannot edit posts or make replies. SORT trick needed bshkris SYNCSORT 6 Tue May 02, 2017 4:35 am
No new posts copy SEQ to PDS and create stats steve-myers JCL & VSAM 5 Thu Apr 27, 2017 1:15 am


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