Page 1 of 1

Add a field in a dataset

PostPosted: Sun Oct 12, 2008 6:41 pm
by mainframe1
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.

Re: Add a field in a dataset

PostPosted: Mon Oct 13, 2008 5:40 am
by Frank Yaeger
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',') 
/*