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 Usergroups Profile Log in to check your private messages Log in
 

 

Command in SFTP

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: Command in SFTP
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

Site Director


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

PostPosted: Tue Sep 15, 2009 8:29 pm    Post subject:
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    Post subject: Reply to: Command in SFTP
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: 7932
Location: Bellevue, IA

PostPosted: Tue Sep 15, 2009 10:26 pm    Post subject:
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    Post subject: Reply to: Command in SFTP
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    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 Fail to change physical VSAM filename... jacobdng CICS 6 Fri Jan 20, 2017 12:36 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
No new posts SDSF Command Avtrix CLIST & REXX 4 Fri Sep 30, 2016 11:13 am
No new posts How to find a CICS resource used in C... Arunkumar Chandrasekaran CICS 8 Thu Sep 29, 2016 1:45 pm
No new posts COMPARE command sivatechdrive TSO/ISPF 7 Fri Sep 16, 2016 4:31 pm


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