Flat files

265 pts.
Tags:
Flat files
RPG data conversion
RPG/400
I have a data in data strucure then after i need to create flat files in txt format. please suggest me how can i proceed.

Answer Wiki

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

Hi,

Are you using RPG for this or something else?

Regards,

Martin Gilbert.

When you say it’s in a data structure – it sounds like it’s in RPG ???
Are all the elements of the structure character???
Do you need your text file on the 400 or are you sending it somewhere/somehow?

Phil

Discuss This Question: 6  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
  • Askt
    yes RPGILE
    265 pointsBadges:
    report
  • Gilly400
    Hi, Define your flat file as externally defined in your RPG - you may have to use RENAME to rename the record format if the format name is the same as the file name. Then you should be able to move your data structure to the field in the flat file (the flat file normally has one field which occupies the whole length of the record) and write the record to the flat file. Regards, Martin Gilbert.
    23,730 pointsBadges:
    report
  • Askt
    we have a task to add delimeter in flat file. can we add this to flat files if yes please suggest me how it is.
    265 pointsBadges:
    report
  • Gilly400
    Hi, What sort of delimiter and where does it need to be? Regards, Martin Gilbert.
    23,730 pointsBadges:
    report
  • Askt
    i want to use delimeter to split each column field record as below name|address| please suggest me how can i.
    265 pointsBadges:
    report
  • philpl1jb
    You could create a 1 char field between each data field in the data structurre and populate them with the pipe '|'.
    49,830 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