login about faq

Hi, we are uploading a file to a mainframe using the Chilkat SSH/SFTP component. We need to send the following command to the mainframe before the upload: site lrecl=4080 recfm=fb cyl pri=15 sec=10

Is there any way of doing this? I see that the quote command is available on the FTP2 component, but not on the SSH/SFTP. This question has been asked a couple of times in this forum but no responses have been provided.

I would greatly appreciate your help!

asked Jun 01 '15 at 10:38

apmramos's gravatar image

apmramos
11


Is the Mainframe open to the outside world?

Normally Mainframes hide behind the firewall.

link

answered Jun 02 '15 at 14:23

cdlvj130's gravatar image

cdlvj130
9691017

The whole transfer is done on a intranet.

link

answered Jun 03 '15 at 13:21

apmramos's gravatar image

apmramos
11

So that is behind the firewall, and you can use ftp safely.

My thinking is that sftp does not support quote, it is kind off a strange animal.

link

answered Jun 03 '15 at 13:54

cdlvj130's gravatar image

cdlvj130
9691017

Is this dataset cataloged? Then you do not need the site command. Have you tried that? Now a generation dataset does need the Parms.

link

answered Jun 04 '15 at 09:14

cdlvj130's gravatar image

cdlvj130
9691017

I am thinking that the mainframe maybe a legacy system. FTP is probably the easiest solution but may not be implemented for security or other reasons. The SSH component has the ChannelSendString method that may work. I am not sure how you would then tie a SSH session to a SFTP session to upload your files.

link

answered Jun 04 '15 at 21:20

emartinson's gravatar image

emartinson
148162030

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:

×201
×9
×3

Asked: Jun 01 '15 at 10:38

Seen: 1,405 times

Last updated: Jun 04 '15 at 21:20

powered by OSQA