|
View previous topic :: View next topic
|
| Author |
Message |
r.ravikumar
New User

Joined: 05 Jan 2007 Posts: 18 Location: chennai
|
|
|
|
Hi,
Whether any option is avaliable in SFTP which is equivalent to "SITE LRECL=1400" in FTP?. |
|
| Back to top |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Did you try this? What happened? |
|
| Back to top |
|
 |
r.ravikumar
New User

Joined: 05 Jan 2007 Posts: 18 Location: chennai
|
|
|
|
Hi,
I tried this but my job abended with error message "Invalid Command". The below is the script used to perfrom the SFTP.
| Code: |
cat <<EOF >sftpcbk/sftpbat-ax
cd output.clearing/Root/Issuing/AEGN
ascii
site lrecl=1400
get $1 /u/fopctst/sftpcbk/axinput.txt
bye
EOF
sftp -oPort=22 -b sftpcbk/sftpbat-ax cbk1Ø172.24.225.90
|
When i am executing the job without "site lrecl=1400", the job is execting fine, but the records are appending. |
|
| Back to top |
|
 |
Robert Sample
Global Moderator

Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
| You might try QUOTE SITE instead of just SITE. |
|
| Back to top |
|
 |
r.ravikumar
New User

Joined: 05 Jan 2007 Posts: 18 Location: chennai
|
|
|
|
Hi,
Still i am gettting error as "Invalid Command" after using QUOTE SITE LRECL=1400. Can you suggest me some other options.
I searched in internet and found that the command STRU can used to reformat the record while performing the SFTP, but i can't find the syntax for using this command. |
|
| Back to top |
|
 |
|
|