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
 
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 line 52: Name or string > 250 char... Ashishpanpaliya CLIST & REXX 5 Sat Oct 14, 2017 2:29 am
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Partial color change of a field in CI... waseem0424 CICS 5 Fri Sep 29, 2017 7:56 pm

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