Portal | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
SFTP Locsite - Co:Z SFTP

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
yuvan

New User


Joined: 10 Jan 2006
Posts: 20
Location: India

PostPosted: Thu Dec 26, 2019 2:21 pm    Post subject: SFTP Locsite - Co:Z SFTP
Reply with quote

Hi Team ,

We are asked to change the FTP process which is running from Mainframe to Unix to SFTP .

We are using Co:Z SFTP to SFTP the files to Linux server.

I came across a FTP card which FTPs a file to Unix server in binary mode.

EZA1736I BINARY
EZA1701I >>> TYPE I
200 Switching to Binary mode.
EZA1460I Command:
EZA1736I locsite sbd=(ibm-037,iso8859-1)

Need to change this card to SFTP .

lzopts="mode=binary"

but is there any option for locsite sbd=(ibm-037,iso8859-1) in SFTP (Co:Z SFTP)

I tired to SFTP without any options for locsite with binary mode , when i check the file in Unix Server , I got below message

"/dnbusr1/fpcuser/data7/XXX.XXXXSHT.A0122519.XA622A.VEQ: International EBCDIC text, with very long lines, with no line terminators"
Back to top
View user's profile Send private message

Nic Clouston

Global Moderator


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

PostPosted: Thu Dec 26, 2019 3:39 pm    Post subject: Reply to: SFTP Locsite - Co:Z SFTP
Reply with quote

Go ask the person/group who gave this task for the relevant doumentation.
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1690
Location: Tiruppur, India

PostPosted: Fri Dec 27, 2019 12:12 am    Post subject:
Reply with quote

lzopts clientcp and servercp options are used for specifying code pages.
Co:Z SFTP will use only iconv() if you use _ in the beginning of the codepage name, which is the same as SBD command in FTP.

Userguide
http://dovetail.com/docs/sftp/sftp-doc.pdf
Co:Z SFTP is not a CA product
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1690
Location: Tiruppur, India

PostPosted: Fri Dec 27, 2019 12:24 am    Post subject:
Reply with quote

I have not done this, I would attempt

Code:
lzopts clientcp=IBM-037,servercp=ISO8859-1,mode=binary
or
lzopts clientcp=_IBM-037,servercp=_ISO8859-1,mode=binary
Back to top
View user's profile Send private message
yuvan

New User


Joined: 10 Jan 2006
Posts: 20
Location: India

PostPosted: Fri Dec 27, 2019 12:12 pm    Post subject:
Reply with quote

Thanks for the reply ,

I used this
lzopts clientcp=IBM-037,servercp=ISO8859-1,mode=binary

working fine .

One more question.

before SFTP , we used to FTP to push mainframe jobs from Unix end

open server.com
USERID
password
SITE FILEtype=JES
put seljcl.txt

Once i put the jcl in Unix environment , it throws below message .

227 Entering Passive Mode (158,158,80,176,36,114)
125 Sending Job to JES internal reader FIXrecfm 80
250-It is known to JES as JOB24393
250 Transfer completed successfully.
897 bytes sent in 7e-05 secs (12814.28 Kbytes/sec)


it gives the job id for later reference in Unix
250-It is known to JES as JOB24393

How to get the JOBID(job number) when using SFTP .

When I do SFTP , it only gives below message
sftp> put seljcl.txt myjob
Uploading seljcl.txt to //-JES.INTRDR/myjob
seljcl.txt 100% 884 39.5KB/s 00:00
sftp>

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

Global Moderator


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

PostPosted: Fri Dec 27, 2019 3:40 pm    Post subject: Reply to: SFTP Locsite - Co:Z SFTP
Reply with quote

1 - use the code tags when presenting code, data,anything from your screen, anything requiring a fixed pitch font
2 - New question, new topic.
3 - Locked.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies.    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 remove remote file older than ... ssuthagar All Other Mainframe Topics 4 Thu Jun 04, 2020 6:26 am
No new posts Issue in SFTP a file yuvan All Other Mainframe Topics 1 Tue Feb 04, 2020 6:08 pm
No new posts SFTP to a Unix Pipe file yuvan All Other Mainframe Topics 4 Tue Jan 28, 2020 9:04 pm
No new posts SFTP from Linux to Mainframe yuvan All Other Mainframe Topics 4 Fri Jan 10, 2020 4:44 pm
No new posts FTP to SFTP for JCL submission from M... yuvan All Other Mainframe Topics 1 Tue Dec 31, 2019 12:22 pm

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