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

SFTP replacement for LOCSITE ASA in FTP


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

New User


Joined: 07 Jan 2021
Posts: 4
Location: India

PostPosted: Thu Jan 07, 2021 12:31 pm
Reply with quote

Hi,

Can someone please let me know the SFTP replacement command for LOCSITE ASA in FTP ?
I am trying to SFTP a Mainframe VBA format file , from Mainframe to windows folder in .DOC format and looks like the "Print Page" characters are not being understood by SFTP. So all the 1's and 0's are getting printed on the .DOC document .

Thanks
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Thu Jan 07, 2021 4:38 pm
Reply with quote

SFTP is a data transfer program not a data manipulation program. It sees your 1s and 0s in column 1 as just pieces of data to be transferred so that is what it does. If you want those bytes to mean something then you have to provide the program to do that once the data has been transferred.
Back to top
View user's profile Send private message
DEBDATTA

New User


Joined: 07 Jan 2021
Posts: 4
Location: India

PostPosted: Thu Jan 07, 2021 4:46 pm
Reply with quote

Thanks Nic. But FTP also trasmits data and is able to understand
The ASA "Print Page" numbers and the .doc document which is created
Is formatted accordingly. We should be having a similar locsite command
In SFTP as well similar to LOCSITE ASA command in FTP.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Jan 07, 2021 5:22 pm
Reply with quote

Quote:
We should be having a similar locsite command
In SFTP as well similar to LOCSITE ASA command in FTP.


do You really think that the authors of a program really care about what You should have or not icon_evil.gif

what about reading the manual Yourself ???

to save some of Your precious time I googled and here is the link to the sftp command
www.ibm.com/support/knowledgecenter/SSLTBW_2.3.0/com.ibm.zos.v2r3.foto100/fotz152.htm

anyway ftp and sftp belong to different components
ftp is part of the IBM communication server
sftp is part of OpenSSH

different programs, different components, different authors, different specifications, different commands icon_cool.gif
Back to top
View user's profile Send private message
DEBDATTA

New User


Joined: 07 Jan 2021
Posts: 4
Location: India

PostPosted: Thu Jan 07, 2021 5:52 pm
Reply with quote

Thanks Nick once again for trying to help me.

For carriage return or line feed we use
linerule=crlf in lzopts parameter in SFTP. So when SFTP reads a
Record and encounters a carriage return or line feed, the remaining
Data is written in next line.

What i am talking about below is similar to above but this time its paging
Feed. So is there some command like linerule above, which willdo the
Paging as well when SFTP encounters paging characters ?
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Thu Jan 07, 2021 11:11 pm
Reply with quote

The name is Nic - no 'k'.
Enrico gave you a link to the manual - what does it say?
Back to top
View user's profile Send private message
daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 792
Location: Pennsylvania

PostPosted: Fri Jan 08, 2021 2:03 am
Reply with quote

Check the record format of your dataset. If it is FBA then you may want to use recfm=fba in lzopts parameter in SFTP
Back to top
View user's profile Send private message
DEBDATTA

New User


Joined: 07 Jan 2021
Posts: 4
Location: India

PostPosted: Mon Jan 11, 2021 4:43 pm
Reply with quote

recfm in lzopts comes into picture for GET function of
SFTP i am working with PUT function to ftp a mainframe file
Data to windows folder
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 SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts How do I SFTP a ADRDSSU file from mai... IBM Tools 4
No new posts How to remove remote file older than ... All Other Mainframe Topics 4
No new posts Issue in SFTP a file All Other Mainframe Topics 1
No new posts SFTP to a Unix Pipe file All Other Mainframe Topics 4
Search our Forums:

Back to Top