|
|
| Author |
Message |
sunnyk
Active User
Joined: 20 Oct 2004 Posts: 59
|
|
|
|
hi,
I am having a input file which has a month field like 01,02....10,11,12
here I want to convert 01 - 09 to ^1-^9 ... where ^ is space i.e to convert a number like 0 to a space.
plz suggest using DFSORT....
thnx |
|
| Back to top |
|
 |
References
|
|
 |
Frank Yaeger
DFSORT Moderator
Joined: 15 Feb 2005 Posts: 4607 Location: San Jose, CA
|
|
|
|
Here's a DFSORT job that will do what you asked for:
| Code: |
//S1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD *
01
02
03
04
05
06
07
08
09
10
11
12
/*
//SORTOUT DD SYSOUT=*
//SYSIN DD *
OPTION COPY
INREC IFTHEN=(WHEN=(1,1,CH,EQ,C'0'),OVERLAY=(1:X))
/*
|
|
|
| Back to top |
|
 |
|
|