Hi,
I need to convert a character field of 8 bytes to PD/BI, for summing up.
The file format is as follows:
1 - 42 --> CH
43 - 50 --> CH - need to convert this field
51 - 64 --> CH
Can you please help me solve it using DFSORT/ICETOOL?
Thanks!
DFSORT - Convert CH to PD
- dick scherrer
- Global moderator
- Posts: 6268
- Joined: Sat Jun 09, 2007 8:58 am
Re: DFSORT - Convert CH to PD
Hello,
Do you really need to convert data formats or do you just need to "sum" that field?
If you only need to sum the field, you can define the field as ZD and proceed.
Are you usng COBOL or the SORT (this is posted in the COBOL part of the forums)?
Do you really need to convert data formats or do you just need to "sum" that field?
If you only need to sum the field, you can define the field as ZD and proceed.
Are you usng COBOL or the SORT (this is posted in the COBOL part of the forums)?
Hope this helps,
d.sch.
d.sch.
-
- Posts: 110
- Joined: Thu Dec 27, 2007 5:18 pm
- Skillset: Known little stuffs to answer a few queries!!
- Referer: Google
- Contact:
Re: DFSORT - Convert CH to PD
How can you convert a character (I assume that it has non-numeric values) to a Packed deciamal?
If you want to convert Numeric fields to Packed deciamals, use the chapter 2.4.7 in the below link.
It has some fine examples. Also you can refer to 2.4.8 for using edited variables.
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CG20/CCONTENTS
Use ZD if your input has only numeric fields.
Arun.
If you want to convert Numeric fields to Packed deciamals, use the chapter 2.4.7 in the below link.
It has some fine examples. Also you can refer to 2.4.8 for using edited variables.
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CG20/CCONTENTS
Use ZD if your input has only numeric fields.
Arun.