how can i make a DisplayFile or a RPG program like WRKOBJ to see the objects and choose with a option (6 or 5) to send that objects by a FTP ?

440 pts.
Tags:
AS/400 FTP
FTP
RPG
WRKOBJ
Please, how can i make a DisplayFile or a RPG program like WRKOBJ to see the objects and choose with a option (6 or 5) to send that objects by a FTP ? I have a problem on my system, and I need see the objects like Workobj and choose this objects to send or no to a FTP server.
ASKED: July 19, 2008  4:36 AM
UPDATED: May 6, 2010  5:21 AM

Answer Wiki

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

Hi,

Maybe your easiest option is to use PDM (if you have it installed, most AS400 sites seem to have it), you can create a user-defined option in PDM to run your own commands. Then you have all the functionality of PDM.

You can create your own command with the parameters being the file name, library name, etc. for the FTP job.

Regards,

Martin Gilbert.

Discuss This Question: 4  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
  • SILVARB
    Do You Know something about QUSLOBJ API's ?, I can use this ?
    440 pointsBadges:
    report
  • Gilly400
    Hi, You could use the API's to write your own WRKOBJ type program & display file, but the API's can be quite difficult and time consuming to get working correctly. If you just need something quickly, you're better off using the PDM method. If you need something permanent that will be used by other people, then it's probably worth writing your own tool for this. You could also use DSPOBJD to an output file instead of the API's, this would probably be quicker to get working and you could always replace it with the API's at a later date. Regards, Martin.
    23,730 pointsBadges:
    report
  • Cwc
    APIs arent' actually so difficult, once you understand how the parameters are defined and what they mean. Once you have a working program that calls an API, it's easier to use as a template for other ones. Some APIs return the information to a user space, which does get more involved -- but again, once you've blazed a trail, it's much easier from that point.
    4,290 pointsBadges:
    report
  • TomLiotta
    Do You Know something about QUSLOBJ API’s ?, I can use this ? The List Objects (QUSLOBJ) API is easy to use and is your best choice for a beginning point. You would create a user space, call QUSLOBJ to build a list od objects in the user space, and then loop through the space to retrieve basic information about each object that you listed. (User Space APIs) You would have a display file with a subfile. Each object that you retrieved information about from the space would be written to your subfile. You would enter options in your subfile to choose which objects to send to the FTP server. When you call QUSLOBJ, you pass in a library and object name parameter. You can request objects with a specific name or a generic* name or a special value such as *ALL to list all objects in the library. You also pass in an object type, which would probably be *FILE since this is for FTP. The User Space APIs take a little practice, but you can ask questions to help with those. As long as you are working with /QSYS.LIB file system objects, the QUSLOBJ API is the one you want first. However, if you are thinking of listing streamfiles in a /root directory or other directory, then QUSLOBJ won't help you at all. For that, you'll need to work in some very different ways. Tom
    125,585 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