Hello,
I am trying to get a text file from mainframe to Solaris system via ftp (ftp client on Solaris) in ascii mode.
But after transfer was done I am getting the extra character (^Z) instead of new line and new lines is disappeared. It looks like following
---
asfdasdfsaf:safdsafdsafd:asdfsafdsf:sadfasdfasdf:^Zsfasafd:sadfsafdsadf:sadfsadfsa:^Zsdfsadfsaf:sadfsdfsaf^Z
----
But it should be like
asfdasdfsaf:safdsafdsafd:asdfsafdsf:sadfasdfasdf
asfdasdfsaf:safdsafdsafd:asdfsafdsf:sadfasdfasdf
asfdasdfsaf:safdsafdsafd:asdfsafdsf:sadfasdfasdf
I have tried different ftp site commands like:
quote site trail
quote site sbsendeol=lf
quote site sbsendeol=none
quote site en=mbcs mb=(IBM-1047,UTF8)
But it did not help, could you please suggest what ftp command should I use?
Thanks in advance!
P.S. Sorry for my English
FTPED from Mainframe to Solaris text file newline issue
-
- Posts: 5
- Joined: Thu Aug 30, 2018 6:07 pm
- Skillset: No skills
- Referer: Google
-
- Global moderator
- Posts: 3025
- Joined: Sun Jul 04, 2010 12:13 am
- Skillset: JCL, PL/1, Rexx, Utilities and to a lesser extent (i.e. I have programmed using them) COBOL,DB2,IMS
- Referer: Google
- Location: Pushing up the daisies (almost)
Re: FTPED from Mainframe to Solaris text file newline issue
What are the mainframe data set (not file) characteristics? Also, is it from the zOS or the USS side of the mainframe.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
Regards
Nic
-
- Posts: 5
- Joined: Thu Aug 30, 2018 6:07 pm
- Skillset: No skills
- Referer: Google
Re: FTPED from Mainframe to Solaris text file newline issue
Hi NicC,
The problem is I have never worked with mainframe I more familiar with Unix OSs. I have started reading a documentation about ISPF so I will try answer to your questions ASAP, right after I understand how to navigate in ISPF and get needed information
But, thing is, the same file (dataset) is ftping correctly from the same mainframe but from another one "system" (on unix side that file treats like simple ascii text file which includes technical information for a program ). I talked to the mainframe support and they told me that ftp server and systems configurations the same. But the issue still in place so I decided to ask someone else.
Thank you.
The problem is I have never worked with mainframe I more familiar with Unix OSs. I have started reading a documentation about ISPF so I will try answer to your questions ASAP, right after I understand how to navigate in ISPF and get needed information

But, thing is, the same file (dataset) is ftping correctly from the same mainframe but from another one "system" (on unix side that file treats like simple ascii text file which includes technical information for a program ). I talked to the mainframe support and they told me that ftp server and systems configurations the same. But the issue still in place so I decided to ask someone else.
Thank you.
-
- Global moderator
- Posts: 3006
- Joined: Fri Apr 18, 2008 11:25 pm
- Skillset: tso,rexx,assembler,pl/i,storage,mvs,os/390,z/os,
- Referer: www.ibmmainframes.com
Re: FTPED from Mainframe to Solaris text file newline issue
ftping correctly from the same mainframe but from another one "system"
OK ... the Mainframe is the same, but
the other ( clent ) system is it a SOLARIS or what else ?
if not a SOLARIS,
You - Your support will have to do some digging to find out what happens on the SOLARIS
Remember
from Your explanation looks like the mainframe is the server, the SOLARIS issuing the get is the client
but if the mainframe is issuing a put to the SOLARIS , then it is the other way around and a different can of worms
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
-
- Posts: 5
- Joined: Thu Aug 30, 2018 6:07 pm
- Skillset: No skills
- Referer: Google
Re: FTPED from Mainframe to Solaris text file newline issue
The client system always the same OS Solaris with UTF-8 locale. Under the "systems" I meant mainframe virtual part, I'm not sure about correct terminology (LPAR, Control Units etc), sorry about that. I meant that we have one Solaris server and two LPAR of mainframe from which we are getting the same dataset(sequential dataset I suppose). Let's called mainframes virtual parts LPAR1 and LPAR2, so when we are getting this file from LPAR1 via ftp it has correct unix Line Feed "\n", actually, If I understand correctly EBCDICT x'25' symbol is converted in Unix LF (\n) correctly. But from LPAR2 we are getting a "one line" file that converts this symbol into ^Z.
Guys from mainframe support team told me that LPARs configuration the same, but I'm not pretty sure about that... I just ask your assistance to help me find in what direction I should digging:)
Guys from mainframe support team told me that LPARs configuration the same, but I'm not pretty sure about that... I just ask your assistance to help me find in what direction I should digging:)
-
- Posts: 5
- Joined: Thu Aug 30, 2018 6:07 pm
- Skillset: No skills
- Referer: Google
Re: FTPED from Mainframe to Solaris text file newline issue
NicC wrote:What are the mainframe data set (not file) characteristics? Also, is it from the zOS or the USS side of the mainframe.
I've got dataset characteristics from ISPF -> 3.4 and then used 's' option does this information enough?
Code: Select all
Data Set Name . . . . : xxx.xxx.xxx.xxx
General Data Current Allocation
Management class . . : MIGML2 Allocated cylinders : 1
Storage class . . . : STANDARD Allocated extents . : 1
Volume serial . . . : SMN731
Device type . . . . : 3390
Data class . . . . . : **None**
Organization . . . : PS Current Utilization
Record format . . . : U Used cylinders . . : 1
Record length . . . : 0 Used extents . . . : 1
Block size . . . . : 10000
1st extent cylinders: 1
Secondary cylinders : 60 Dates
Data set name type : Creation date . . . : 2018/08/09
Referenced date . . : 2018/08/31
Expiration date . . : ***None***
SMS Compressible . : NO
And I can assume that it is from the zOS side.
Also, in 3270 terminal dataset also is displayed like one line file with ":" and "." delimiters inside , it looks like folowing:
dsfasdf asdfsdf asdfasdf:asdadsfsadf:sdfsdfsadf:.sdfsadfsadf sadfsadf asdfsadf:.safdsadfsda sadfsadf asdfsadfsdf:.
So problem is that when we frping this file from LPAR1 this dot "." is replaced in LF (new line \n) on Unix side
When getting it from LPAR2 dot "." is replaced into ^Z
What could be the reason?
Thanks in advance!
-
- Posts: 5
- Joined: Thu Aug 30, 2018 6:07 pm
- Skillset: No skills
- Referer: Google
Re: FTPED from Mainframe to Solaris text file newline issue
Maybe someone can help me... Is there any way I could check code page ( CCSID ) configuration, might it be related to the issue?
Thanks in advance!
Thanks in advance!
-
- Similar Topics
- Replies
- Views
- Last post
-
- 8
- 5034
-
by enrico-sorichetti
View the latest post
Fri Mar 12, 2021 4:09 pm
-
-
transferring file from pc to mainframe pds member
by valeca » Wed Sep 28, 2022 3:42 am » in TSO & ISPF - 5
- 3330
-
by Pedro
View the latest post
Thu Sep 29, 2022 12:11 am
-
-
- 1
- 2880
-
by Robert Sample
View the latest post
Sun Feb 20, 2022 8:04 pm
-
- 3
- 4996
-
by jrcox
View the latest post
Wed Jul 29, 2020 7:52 pm
-
- 1
- 1331
-
by jcdm
View the latest post
Mon Oct 24, 2022 6:10 pm