To copy a string

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

Moderators: Frank Yaeger, Moderator Group

Post Reply
Jothi Ganesh
Member
Posts: 2
Joined: Fri Feb 13, 2015 11:28 am

To copy a string

Post by Jothi Ganesh » Fri Feb 13, 2015 11:34 am

I want to copy a string from one position to another position in a dataset using line command. Not using a JCL.

Example:
12345678
abcdefgh
ijklmnop

I want to change the '8' to '3' in first line, 'h' to 'c' in second line, 'p' to 'k' in third line.

Is there any option available in Change command.

Thanks.
Jothi

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

Post by William Collins » Fri Feb 13, 2015 2:37 pm

It's not clear what or why you want, but if you look at the documentation of the Change command (manual or F1) it may do what you want.

And why is this posted in the DFSORT part of the forum?

Jothi Ganesh
Member
Posts: 2
Joined: Fri Feb 13, 2015 11:28 am

Post by Jothi Ganesh » Fri Mar 06, 2015 9:36 am

I want to replace a text in one position with a text from another position in a file. Using line command not using JCL.

Thanks
Jothi

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