Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to change A6 into P7 field

Status
Not open for further replies.
Apr 3, 2005
32
US
I have a field with format A6 and I need it to change into P7, any suggestion....
Or P7 change into A6...Either way.

Thank you in advance
 
How about:

DEFINE FILE WHATEVER
P7FIELD/P7 = EDIT(A6FIELD);
A7FIELD/A7 = EDIT(P7FIELD);
END

P7 is too big to put into A6.
 
To go from alpha to packed, consider the following functions
ATODBL to convert from alpha to double precision format,
PCKOUT to convert from double precision to packed,
CHKPCK to validate the packed field.

You may have to do this in two (or three) steps.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top