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.
Add a field in a dataset
-
- Posts: 35
- Joined: Wed Oct 08, 2008 11:39 am
- Skillset: cobol, dn2, jcl, adabas, roscoe
- Referer: FRIEND
- Frank Yaeger
- Global moderator
- Posts: 1079
- Joined: Sat Jun 09, 2007 8:44 pm
- Skillset: DFSORT, ICETOOL, ICEGENER
- Referer: Search
- Contact:
Re: Add a field in a dataset
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.
Code: Select all
//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
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort
-
- Similar Topics
- Replies
- Views
- Last post
-
- 1
- 1810
-
by sergeyken
View the latest post
Fri Mar 26, 2021 11:59 pm
-
- 2
- 1608
-
by sergeyken
View the latest post
Sun Jan 26, 2025 3:07 am
-
-
sort card to add zeros to varying alphanumeric field.
by longfall » Thu Mar 09, 2023 12:03 am » in DFSORT/ICETOOL/ICEGENER - 1
- 1840
-
by sergeyken
View the latest post
Thu Mar 09, 2023 2:04 am
-
-
- 3
- 2757
-
by sergeyken
View the latest post
Sat Nov 16, 2024 11:05 pm
-
- 2
- 2766
-
by willy jensen
View the latest post
Sat Mar 04, 2023 12:41 pm