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: 7306

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 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 IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am


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