File transfer from Mainframe to unix loosing spanish Charact
-
- Global moderator
- Posts: 3720
- Joined: Sat Dec 19, 2009 8:32 pm
- Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
- Referer: other forum
- Location: Dubuque, Iowa, USA
Re: File transfer from Mainframe to unix loosing spanish Cha
N tilde should be X'A0' while the # symbol is X'23'; I'm not sure why they are getting crossed.
-
- Posts: 13
- Joined: Wed Aug 16, 2017 10:48 pm
- Skillset: DB2 DBA
- Referer: online
Re: File transfer from Mainframe to unix loosing spanish Cha
Hi Robert,
Thanks alot. Can you suggest if there is any way to transfer these files without losing spanish characters.
Thanks,
Nagesh.
Thanks alot. Can you suggest if there is any way to transfer these files without losing spanish characters.
Thanks,
Nagesh.
-
- Global moderator
- Posts: 3720
- Joined: Sat Dec 19, 2009 8:32 pm
- Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
- Referer: other forum
- Location: Dubuque, Iowa, USA
Re: File transfer from Mainframe to unix loosing spanish Cha
First, mainframes have "files" in Unix System Services and on tape only. Disk allocations are ALWAYS "data sets" and calling them "files" is just plain WRONG.
Second, FTP is the way to transfer data sets to other platforms. Some sites purchase other solutions (for example, Connect:Direct) but unless your site has purchased such a solution, you will need to use FTP.
Third, you may have to experiment -- possibly dozens of times -- with FTP jobs to get the parameters right for the transfer you want to do. SBD=(IBM-284,?) is most likely what you'll need but what code page to replace the ? is what you need to figure out.
Fourth, one possibility would be to transfer the data set as binary, then write your own translation program on the Linux system to convert EBCDIC to ASCII (preserving the Spanish characters).
Second, FTP is the way to transfer data sets to other platforms. Some sites purchase other solutions (for example, Connect:Direct) but unless your site has purchased such a solution, you will need to use FTP.
Third, you may have to experiment -- possibly dozens of times -- with FTP jobs to get the parameters right for the transfer you want to do. SBD=(IBM-284,?) is most likely what you'll need but what code page to replace the ? is what you need to figure out.
Fourth, one possibility would be to transfer the data set as binary, then write your own translation program on the Linux system to convert EBCDIC to ASCII (preserving the Spanish characters).
Re: File transfer from Mainframe to unix loosing spanish Cha
You keep saying spanish charaters, But I highly doubt it is spanish.
To test your scenario.
Go to the Mainframe source file. Have only two lines of data and the data should produce the "spanish charaters" when sent.
Do a HEX ON in the file and post it here. That would give the input file.
For the output file, if you have NOTEPAD++, then open the transferred file using "Hex-Editor Plugin for Notepad++"
This would give you hexadecimal values that were transferred. Post the hex format of the output file.
We would be able to identify the root cause once you have the input & output data.
To test your scenario.
Go to the Mainframe source file. Have only two lines of data and the data should produce the "spanish charaters" when sent.
Do a HEX ON in the file and post it here. That would give the input file.
For the output file, if you have NOTEPAD++, then open the transferred file using "Hex-Editor Plugin for Notepad++"
This would give you hexadecimal values that were transferred. Post the hex format of the output file.
We would be able to identify the root cause once you have the input & output data.
-
- Posts: 13
- Joined: Wed Aug 16, 2017 10:48 pm
- Skillset: DB2 DBA
- Referer: online
Re: File transfer from Mainframe to unix loosing spanish Cha
Hi Vasanthz,
Thanks alot for quick reply.
Mainframe Hex on giving me below output.
FRANCISCO VILLASEÑOR
CDCDCCECD4ECDDCEC6DD
69153923605933125969
Thanks alot for quick reply.
Mainframe Hex on giving me below output.
FRANCISCO VILLASEÑOR
CDCDCCECD4ECDDCEC6DD
69153923605933125969
-
- Posts: 13
- Joined: Wed Aug 16, 2017 10:48 pm
- Skillset: DB2 DBA
- Referer: online
Re: File transfer from Mainframe to unix loosing spanish Cha
Please find the attachment that I tried to see the special character with conversion table.
If anyone had any syntax to convert EBCIDIC to UTF-8 that would help alot. I am planning to load this on to oralce and these are inserted as it is, I mean the special character is not decoded while loading with sqlloader.
Thanks,
Nagesh.
You do not have the required permissions to view the files attached to this post.
Re: File transfer from Mainframe to unix loosing spanish Cha
ok.
How does the file look on the receiving side? with hex data
How does the file look on the receiving side? with hex data
-
- Posts: 13
- Joined: Wed Aug 16, 2017 10:48 pm
- Skillset: DB2 DBA
- Referer: online
Re: File transfer from Mainframe to unix loosing spanish Cha
You do not have the required permissions to view the files attached to this post.
Re: File transfer from Mainframe to unix loosing spanish Cha
Hi,
I was able to recreate your issue.
Sent
using standard FTP.
Ñ was converted to x'ac' which is ¬
Sent using the below control cards,
Ñ was converted to x'd1' which is Ñ . http://www.simotime.com/asc2ebc1.htm confirms that the translation is correct.
Can you try this option? Or have you tried this already and facing issues with this?
I was able to recreate your issue.
Sent
Code: Select all
FRANCISCO VILLASEÑOR
CDCDCCECD4ECDDCEC6DD
69153923605933125969
using standard FTP.
Code: Select all
server
userid
password
ASCII
PUT 'WELLS.DOGE' spanish.txt
quit
Ñ was converted to x'ac' which is ¬
Sent using the below control cards,
Code: Select all
server
userid
password
locsite sbd=(IBM-1047,ISO8859-1)
ASCII
PUT 'WELLS.DOGE' spanish.txt
quit
Ñ was converted to x'd1' which is Ñ . http://www.simotime.com/asc2ebc1.htm confirms that the translation is correct.
Can you try this option? Or have you tried this already and facing issues with this?
-
- Posts: 13
- Joined: Wed Aug 16, 2017 10:48 pm
- Skillset: DB2 DBA
- Referer: online
Re: File transfer from Mainframe to unix loosing spanish Cha
Thanks alot Vasanthz. I will try the above options and will post the results.
Thanks,
Nagesh.
Thanks,
Nagesh.
-
- Similar Topics
- Replies
- Views
- Last post
-
- 1
- 2886
-
by Robert Sample
View the latest post
Sun Feb 20, 2022 8:04 pm
-
-
Creating Unix Directory using COBOL in Unix 0n Z/OS
by Heisenberg » Mon Jun 26, 2023 4:36 pm » in IBM Cobol - 2
- 3037
-
by Robert Sample
View the latest post
Wed Jul 05, 2023 6:36 pm
-
-
- 8
- 5137
-
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
- 3352
-
by Pedro
View the latest post
Thu Sep 29, 2022 12:11 am
-
-
-
Calling Java program on UNIX/USS from a COBOL CICS program?
by zbius » Tue Nov 05, 2024 2:37 pm » in IBM Cobol - 2
- 2593
-
by zbius
View the latest post
Wed Nov 06, 2024 6:02 pm
-