Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8151
Location: East Dubuque, Illinois, USA

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 How to change a string containing the... chong.zhou TSO/ISPF 6 Tue Aug 29, 2017 4:54 pm
No new posts Failure after DIR command Hank Watson All Other Mainframe Topics 2 Tue Aug 29, 2017 3:14 am
No new posts Command to find TMEMBER name for a TPIPE Siva NKK Kothamasu IMS DB/DC 0 Wed Aug 16, 2017 6:08 pm
This topic is locked: you cannot edit posts or make replies. rexx to create a tso command Bharath Vikraman CLIST & REXX 1 Tue Aug 08, 2017 3:32 pm
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us