|
View previous topic :: View next topic
|
| Author |
Message |
Rambhupalchowdary
New User

Joined: 19 Aug 2010 Posts: 47 Location: Hyderabad
|
|
|
|
Hi All,
I have a value in my input file as shown below.
0003200
0000234
0001025
i want to convert the above data to -ve ZD format as shown below using sort/icetool.
000320}
000023M
000102N
( } = -1 ; M = -4 ; N = -5 )
Could any one please shed some light on this.
Thanks,
RBC. |
|
| Back to top |
|
 |
Anuj Dhawan
Superior Member

Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Multiply by "-1" ?
| Code: |
//STEP001 EXEC PGM=SORT
//SORTIN DD *
0003200
0000234
0001025
//SORTOUT DD SYSOUT=*
//SYSIN DD *
OPTION COPY
INREC BUILD=(-1,MUL,01,07,SFF,ZD,LENGTH=07)
//SYSOUT DD SYSOUT=*
//* |
output:
| Code: |
000320}
000023M
000102N |
|
|
| Back to top |
|
 |
Rambhupalchowdary
New User

Joined: 19 Aug 2010 Posts: 47 Location: Hyderabad
|
|
|
|
Thanks Anuj,
I have not used SFF, thats why it didnt work properly.
Thanks a lot. |
|
| Back to top |
|
 |
Anuj Dhawan
Superior Member

Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Hope, you got it working now - Good Luck.  |
|
| Back to top |
|
 |
Rambhupalchowdary
New User

Joined: 19 Aug 2010 Posts: 47 Location: Hyderabad
|
|
|
|
Anuj,
Could you let me know the usage of SFF, where can we use this?
Thanks,
Ram. |
|
| Back to top |
|
 |
Anuj Dhawan
Superior Member

Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
| Back to top |
|
 |
Frank Yaeger
DFSORT Developer

Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
| Back to top |
|
 |
|
|