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

Format Binary file to EBCDIC


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
BlackScreen_Hustle

New User


Joined: 20 May 2024
Posts: 9
Location: India

PostPosted: Wed Jun 05, 2024 5:35 pm
Reply with quote

We have a file sent in binary mode which we want to encode back to ebcdic.
The flow of data is Mainframe1 sends file in binary mode > MFT transfers in binary mode > Mainframe2. How can I decode this file back to ebcdic data ? The file looks like below -

Code:
********************************* Top of Data **********************************
@..........................@.........@@...@.........@@@@@@@......@@@@@@..@......
......@@@@@@@@@@@@@@@@@@@@@..........................................@..........
...............@@@@@@@@@@@@@.........@......@.........@@@@@@..@.............@@@@
@@@@@@@@@@@@@@@@@@@.......................................@.....................
.......@@@@@@@@@@.....@@@@@@@@@@@@@@@......@@@@@@..@............@@@@@@@@@@@@@@@@
@@@@@..........................................@.........................@@@@@@@
@@@@@@.........@......@.........@@@@@@..@.............@@@@@@@@@@@@@@@@@@@@@@@...
....................................@............................@......@@@.....
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2051
Location: USA

PostPosted: Wed Jun 05, 2024 6:04 pm
Reply with quote

1. If the original dataset was NOT EBCDIC TEXT DATASET, then it cannot be converted "back to EBCDIC".

2. If the original dataset was REALLY EBCDIC TEXT DATASET, then after two binary transfers it should remain an EBCDIC TEXT DATASET.

3. How the initial dataset looks like, before the first FTP?

4. Please, present all actual code used for this transfer game, plus input/output data view before/after each transfer, and in hex notation.

But even better - initially investigate each of your steps by yourself.
Back to top
View user's profile Send private message
BlackScreen_Hustle

New User


Joined: 20 May 2024
Posts: 9
Location: India

PostPosted: Wed Jun 05, 2024 6:27 pm
Reply with quote

sergeyken wrote:
1. If the original dataset was NOT EBCDIC TEXT DATASET, then it cannot be converted "back to EBCDIC".

2. If the original dataset was REALLY EBCDIC TEXT DATASET, then after two binary transfers it should remain an EBCDIC TEXT DATASET.

3. How the initial dataset looks like, before the first FTP?

4. Please, present all actual code used for this transfer game, plus input/output data view before/after each transfer, and in hex notation.

But even better - initially investigate each of your steps by yourself.


The original Mainframe file is an EBCDIC text. But it's coming to us as I have shown above.
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2051
Location: USA

PostPosted: Wed Jun 05, 2024 6:58 pm
Reply with quote

BlackScreen_Hustle wrote:
sergeyken wrote:
1. If the original dataset was NOT EBCDIC TEXT DATASET, then it cannot be converted "back to EBCDIC".

2. If the original dataset was REALLY EBCDIC TEXT DATASET, then after two binary transfers it should remain an EBCDIC TEXT DATASET.

3. How the initial dataset looks like, before the first FTP?

4. Please, present all actual code used for this transfer game, plus input/output data view before/after each transfer, and in hex notation.

But even better - initially investigate each of your steps by yourself.


The original Mainframe file is an EBCDIC text. But it's coming to us as I have shown above.


Please, present all actual code used for this transfer game, plus input/output data view before/after each transfer, and in hex notation.

But even better - initially investigate each of your steps by yourself.
Back to top
View user's profile Send private message
BlackScreen_Hustle

New User


Joined: 20 May 2024
Posts: 9
Location: India

PostPosted: Fri Jun 07, 2024 4:40 pm
Reply with quote

Hi All,
We did some investigation and there was some issue in MFT settings. Once they sent the file in binary, we got the right data. Thanks for all the replies.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Mainframe Dataset Binary or ASCII Mainframe Interview Questions 4
No new posts Binary File format getting change whi... All Other Mainframe Topics 7
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
Search our Forums:

Back to Top