Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Commands in FTP

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
khadar78
Warnings : 1

New User


Joined: 29 Apr 2008
Posts: 16
Location: Mysore

PostPosted: Thu Dec 31, 2009 3:54 pm    Post subject: Commands in FTP
Reply with quote

Hi,

I have a requirement to fetch a file details from the server.
The suggestions came up were:
To get the file size or check the content of the file and read the data from the file..

Could anyone tell me. if there are commands in FTP for the above requirement??
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Thu Dec 31, 2009 4:03 pm    Post subject: Reply to: Commands in FTP
Reply with quote

Use FTP to connect and logon to the server. Enter HELP to get a list of the FTP commands supported on that server. Then you can can use HELP <command> to further describe each command.
Back to top
View user's profile Send private message
khadar78
Warnings : 1

New User


Joined: 29 Apr 2008
Posts: 16
Location: Mysore

PostPosted: Tue Jan 05, 2010 10:40 am    Post subject:
Reply with quote

I tried searchin commands, but found with LS
LS = listing of contents in the current directory.

But i want to check if file 'X' is present in a directory.
If present find the content of that file.
After LS command it list downs all the files in spool.

Please let me know if anyone has inputs..
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8151
Location: East Dubuque, Illinois, USA

PostPosted: Tue Jan 05, 2010 5:00 pm    Post subject:
Reply with quote

There are no FTP commands to do what you want -- FTP is not a scripting language, it is very specific to file transfers. However, you could connect to the server, issue an LS (or DIR) command to get the list of files, and then the next step could parse the file list looking for the particular file and its size; the third step could then be another FTP customized by the results of the second step to download the file. You will have to either use ISPF browse or edit to find the content of the file, after it has been transferred.
Back to top
View user's profile Send private message
khadar78
Warnings : 1

New User


Joined: 29 Apr 2008
Posts: 16
Location: Mysore

PostPosted: Wed Jan 06, 2010 2:13 pm    Post subject:
Reply with quote

Thanks Robert for your valuable response.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts Invoking CA 7 commands through REXX kenshin CLIST & REXX 10 Fri Aug 12, 2016 9:33 pm
No new posts Execute multiple DB2 Load commands in... faizm DB2 4 Wed Aug 03, 2016 12:53 pm

Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us