Access the answers to your technology questions today.
Subscribe Now
30-day free trial. Register in 60 seconds.
What Makes Experts Exchange Unique?
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.
Try it out and discover for yourself.
Subscribe Now
30-day free trial. Register in 60 seconds.
Join the Community
Give a Little. Get a Lot.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Join the Community
by: tliottaPosted on 2006-09-11 at 18:44:06ID: 17499232
Corey:
It's not totally clear what you need. Can you elaborate on what is meant by "standard file"? Is that an externally-described database file? Does the character field have an external field description?
When spoken of in terms of "cpyf", the answer to those questions would normally be "Yes." However, there is a less frequent situation where the answer would be "No" to each of the questions. The most appropriate solution can depend on which situation you have.
Also, is the character field completely filled with numeric digits? or does it include leading and/or trailing blanks? Does it contain any other characters such as decimal points or sign characters?
If it's just a character field that contains all numeric digits, such as a seven-digit ProductCode like '0012345', then you might get off very easy simply by creating a logical file that redefines the field as zoned-decimal. If it's slightly more complex, it might be possible to create a view instead. And if there are numerous complications, we might need more detail and even a bit of programming.
Please provide info on what version of OS/400 you have plus a little more detail on the field. You might run the DSPFFD command against the file and copy/paste the field definition here.
Tom