Moving Data

In this Mainframe Forum - You can post your queries on DFSORT, ICETOOL , SyncSort & JCL Utilities

Moderators: Frank Yaeger, Moderator Group

Post Reply
venky
Active Member
Posts: 50
Joined: Sat May 12, 2012 10:13 pm

Moving Data

Post by venky » Tue Oct 08, 2013 9:40 pm

Hi All,

I have a file having the records metioned below with 80 bytes.

Input file :

October
GIT
S12345
SH
10/2/13
123456
B99

Now I want the ouput as below.

October
GIT
S12345
SH
10/2/13
123456B99

Here in the output file B99 is concatenated with the above record '123456'.

Please let me know if there is any possibility with sort cards.

Thanks,
Venky.

William Collins
Active Member
Posts: 732
Joined: Thu May 24, 2012 4:07 am

Post by William Collins » Tue Oct 08, 2013 11:25 pm

Do you have any way to reliably identify all the "12345" records? If so, then the answer is Yes.

Is the last record in the group always B99? Or what?

Are there multiple groups in a file, or does the same represent the entire file.

The more yoiu can survive, the better the suggestions.

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others