I have a need to send site commands to allocate an mainframe dataset, how can I do that using the SFTP product? I don't see any methods or properties that I can set in order to accomplish this task.

I need to be able to send the following command:

QUOTE SITE RECFM=FB LRECL=100 BLOCKSIZE=27900

Any help would be appreciated.

Thanks in advance.

asked 04 Jun '10, 13:09

Chuck%20S's gravatar image

Chuck S
262
accept rate: 0%

edited 24 May '11, 13:36

Martin%20Vobr's gravatar image

Martin Vobr ♦♦
335310


The QUOTE SITE sequence is used in FTP and FTP/SSL clients for sending commands to the server. I don't recall any SFTP server which uses them. Are you sure that you are using the SFTP?

For differences between SFTP, FTPS, FTP and FTP/SSL see http://www.rebex.net/kb/secure-ftp.aspx

Following code demonstrates how to use SITE command using Rebex FTP:

// create client and connect 
Ftp client = new Ftp();
client.Connect("ftp.example.org");
client.Login("username", "password");

// send SITE command
// note that QUOTE and SITE are ommited. QUOTE is command line ftp syntax only.
client.Site("RECFM=FB LRECL=100 BLOCKSIZE=27900");

// disconnect 
client.Disconnect();
link

answered 04 Jun '10, 13:58

Martin%20Vobr's gravatar image

Martin Vobr ♦♦
335310
accept rate: 37%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×136
×3

Asked: 04 Jun '10, 13:09

Seen: 1,719 times

Last updated: 24 May '11, 13:36