How can I transfer an ASCII file with negative numbers to my iSeries

15 pts.
Tags:
ASCII
ASCII File
IBM iSeries
I need to transfer an ASCII file that has a field that may contain negative numbers to my iSeries. I'm getting nowhere with this. Can someone tell me how I might do this?

Answer Wiki

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

Is this a flat file or a deliminated file.
You may need to create an RPG program —
Character strings with leading / trailing – are handled properly at conversion using %DEC

Phil

Discuss This Question: 2  Replies

 
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
  • Rscoville
    Phil, I can have it as a flat file or a delimited file. What type of conversion are you talking about using %dec? Robert
    15 pointsBadges:
    report
  • philpl1jb
    No problem use CPYFRMIMPF it defaults to CSV deliminated "" and , and will move -54.21 to a signed or packed field as negative 54.21. Phil
    51,355 pointsBadges:
    report

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