Converting PF file to .EXT file

60 pts.
Tags:
AS 400
EXT file
PF file
How can I convert a PF data into a .EXT file? I am still new to AS/400 and haven't encountered this before. I need some help.
1

Answer Wiki

Thanks. We'll let you know when a new response is added.
An EXT file may be sent by an automated emailing script or program; using the generic filename filename.ext (the file’s name and “ext” for “extension”); may be a file created in one of many text or binary formats.

When you receive an EXT file as an email attachment, it is generally not clear what the true file format is. It is best to contact the sender of the email to determine the file contents to help with finding an application that can read it.

Many automated emailers  on the Web use a generic string “filename.ext” when referring to the email attachment. It’s possible in some cases the script author did not replace the filename string with the appropriate attachment filename when sending the email.

It’s better to use the true file extension like CSV, DOC ,XLS. TXT, PPT or any one of a hundred others.

If you are looking to send as/400 data it can be done a number of ways and in many file formats. You can import the data into Excel using the addon and create a CSV , XLS you can write a script or app in c# or VB to do the extract and build a file..

More specific details are needed for thing like what is going into the file, select records, entire file. What is the recipient going to do with the data, will it be used in a PC environment or used on another as/400?  If that is the case you could just create a SAVF with the data and they can do a RSTOBJ to get the file data. You just need to remember to set the version parameter if they are on a different IBM OS.

Discuss This Question: 3  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.
  • Splat
    It's simple enough to use CPYTOSTMF or CPYTOIMPF to create a file in the IFS with the .ext extension. Whether the information in the resulting file will be formatted correctly depends on what you've done in the PF.
    12,835 pointsBadges:
    report
  • ToddN2000
    The EXT file for mat can be created and used by a number of programs. Can you elaborate more on it's intended use?
    126,110 pointsBadges:
    report
  • Radycal
    I was assigned a task to create program to convert PF file data to .EXT file. The converted file will then be use to be attach in email. I'm still learning AS/400 and so need some advise. Thanks!
    60 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.

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

Following

Share this item with your network: