Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
Hello,
Quote:
I would like to extract only the values and leave the spaces.
This needs a better explanation.
Which spaces - field by field or every individual space?
Looking at the data you posted, it appears that there are either packed or binary fields. If so, they will very likely contain an x'40' (space) as part of the numeric value (i.e. a 9(3) comp-3 value of +400 would be x'400c') which contains a space.
It will help if you post the desired output from that posted input.
Also post the recfm and lrecl of the input and output files.
Which spaces - field by field or every individual space?
Field by field.
There are some PD fields also. How do i sort that.
Also post the recfm and lrecl of the input and output files.
(RECFM=FB,LRECL=350,BLKSIZE=27650
According to my requirement i have extracted the field by field sorting and the problem now i have is i have some PD fields, I am not sure how to give the fields for that. Plz have a look into the below INRECT parm and advise me
without giving ZD,EDIT=(TTTT.TTT), it works but the PD fields are not extracted .. There are some speical chars in the output file!!! So how to i specify for this?
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
k.a.khamaurutheen,
I still can't figure out what you're trying to do. Your posts are quite confusing and seem to go in many directions.
You say you have PD fields - PD fields do not store the decimal point internally (the decimal point is implicit). You also show non-PD fields with decimal points (these are NOT ZD fields since ZD fields do not store the decimal point internally). You can use DFSORT's UFF or SFF formats to handle fields with explicit decimal points but I don't know what you want to do with these fields (or if you even have them in your input records).
You never really showed what your input records actually look like or what you expect for output, or explained the rules for getting from input to output.
If you have PD fields and want to display them with a decimal point, you can use p,m,PD,EDIT=(pattern). If you have ZD fields and want to display them with a decimal point, you can use p,m,ZD,EDIT=(pattern). I don't know what it is you want to do with the fields that already have a decimal point, if you have such fields, since they're already displayable.
If you still need help, you're going to have to do a much better job of explaining what your input fields look like and what you need for output.