50 pts.
 CL Programming
Hi Gurus, in cl how to write download file code.and use it in rpg? Is there any command for download file? Thanks & Regards, Sudheer

Software/Hardware used:
ASKED: September 9, 2010  9:21 AM
UPDATED: September 18, 2010  11:31 PM

Answer Wiki:
what type of file download? FTP from a server or PC drive? open a file on the /400 and use it in an RPG? how do you want to use the file? -Sarge
Last Wiki Answer Submitted:  September 9, 2010  1:07 pm  by  Rudedog   950 pts.
All Answer Wiki Contributors:  Rudedog   950 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

What do you mean by “download”?

You have an iSeries and you have a remote system. The remote system might be a PC, it might be another server in your local network or it might be some unknown system out on the internet. When you say “download”, do you mean “download from the iSeries to the remote system” or “download from the remote system to the iSeries“?

Is the remote system in your local network? Can you see the remote system when you run this command:

WRKLNK '/QNTC/*'

What protocol will you use for the download — FTP? HTTP? SMB? something else?

Do you have a user ID on the remote system?

Tom

 107,845 pts.

 

It converts .csv format.whenever user clicks download, the will be converted into .csv file and print to the user.

Thanks & Regards,
Sudheer

 50 pts.

 

…whenever user clicks download…

Clicks “download”? Where is a user going to click “download”?

Is that an icon that you will create on their desktops? Is it a button on a web page that you will create? Is it an option in some application that is installed on the users’ PCs?

Please provide a description of what the user will have available. Please describe how the PC and the AS/400 are connected across a network.

Tom

 107,845 pts.

 

its a functional key(F8). it generates print file in spool. For download file, i have to take one work file and in that all are characters.

Sudheer.

 50 pts.

 

You are saying that it will generate a spool file. Do you want to change the spool file into a CSV file? If yes you have to write down a program. First copy the spool file into a work file using command CPYSPLF. Write a RPG program with a data structure, change the work file into a comma separated file. FTP it to the PC. All done.

 45 pts.