Add a field in a dataset



IBM's flagship sort product DFSORT for sorting, merging, copying, data manipulation and reporting. Includes ICETOOL and ICEGENER

Add a field in a dataset

Postby mainframe1 » Sun Oct 12, 2008 6:41 pm

I want to add a field into a dataset at a particular position.
I have a dataset with the content 12345 I want to add a comma after the 5.
mainframe1
 
Posts: 35
Joined: Wed Oct 08, 2008 11:39 am
Has thanked: 0 time
Been thanked: 0 time

Re: Add a field in a dataset

Postby Frank Yaeger » Mon Oct 13, 2008 5:40 am

Based on your decription, you could use a DFSORT job like the following to do what you asked for. If that's not what you want, then you need to do a better job of describing the situation.

//S1 EXEC PGM=ICEMAN     
//SYSOUT DD SYSOUT=*     
//SORTIN DD *             
12345                     
/*
//SORTOUT DD SYSOUT=*     
//SYSIN DD *             
  OPTION COPY             
  INREC OVERLAY=(6:C',') 
/*
Frank Yaeger - DFSORT Development Team (IBM) - yaeger@us.ibm.com
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort
User avatar
Frank Yaeger
Global moderator
 
Posts: 1079
Joined: Sat Jun 09, 2007 8:44 pm
Has thanked: 0 time
Been thanked: 15 times


Return to DFSORT/ICETOOL/ICEGENER

 


  • Related topics
    Replies
    Views
    Last post