Generating Excel spread sheets from Sequel on the iseries

55 pts.
Tags:
Application development
AS/400
Data analysis
Development
RPG
RPGLE
I produce an excel spread sheet from sequel on the as400 and e-mail it to a user. The user performs some data entry on the spread sheet. The spread sheet is then transfered to a AS400 Physical file and a program is called that updates a AS400 data base. The problem is when they enter 013, the spread sheet turns it into 13(blank). If I format the excell cell as text it will hold the leading zero. Is there any way this cell can be formated when sequel creates the spread sheet. Thanks
ASKED: April 21, 2006  8:48 AM
UPDATED: December 6, 2009  8:31 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

Try converting the number columns during the extract with the DIGITS function

SELECT digits(NUMBER_COLUMN) FROM MYLIB/MYFILE.

======================================================

If you want a character column to contain only numeric values, prepend the digits with a single quote:<pre>’013</pre>If you don’t like how Excel works, don’t use Excel. Wish there was a better answer.

Tom

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following