IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Command in SFTP


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
r.ravikumar

New User


Joined: 05 Jan 2007
Posts: 18
Location: chennai

PostPosted: Tue Sep 15, 2009 3:56 pm
Reply with quote

Hi,

Whether any option is avaliable in SFTP which is equivalent to "SITE LRECL=1400" in FTP?.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Sep 15, 2009 8:29 pm
Reply with quote

Hello,

Did you try this? What happened?
Back to top
View user's profile Send private message
r.ravikumar

New User


Joined: 05 Jan 2007
Posts: 18
Location: chennai

PostPosted: Tue Sep 15, 2009 8:39 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Sep 15, 2009 10:26 pm
Reply with quote

You might try QUOTE SITE instead of just SITE.
Back to top
View user's profile Send private message
r.ravikumar

New User


Joined: 05 Jan 2007
Posts: 18
Location: chennai

PostPosted: Wed Sep 16, 2009 10:15 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
No new posts LTJ command CA Products 4
Search our Forums:

Back to Top