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: 8339
Location: Dubuque, Iowa, 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 Need help on TDQ load from file using... subratarec CICS 4 Wed Jun 13, 2018 11:32 pm
No new posts Rexx command to open an another text ... Bharath Vikraman PC Guides & IT News 7 Sat May 12, 2018 4:34 pm
No new posts IBM Pcomm macro startmacro command do... JGregoire IBM Tools 0 Wed May 09, 2018 12:16 pm
No new posts How to use STDPARM with df command maxsubrat JCL & VSAM 5 Fri May 04, 2018 7:57 pm
No new posts Need help with 002-030 ABEND in TSO R... Terry Tallian TSO/ISPF 1 Sat Mar 17, 2018 1:13 am

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