Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

BASE 64 to EBCDIC through COBOL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
yogeshwar_ade

Active User


Joined: 31 Aug 2006
Posts: 103
Location: INDIA

PostPosted: Wed Jun 17, 2009 9:55 am    Post subject: BASE 64 to EBCDIC through COBOL
Reply with quote

Hi All,

I am receiving data from 3 rd party in BASE 64 (http://www.hcidata.info/base64.htm)format through MQ.

But we need data in EBCDIC format for further processing.

I did googling to convert data form Base64 to EBCDIC format but found assembler reference (http://www.cicsworld.com/node/449), for which I am new.

Is there any way to do this by COBOL?
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Wed Jun 17, 2009 10:05 am    Post subject: Reply to: BASE 64 to EBCDIC through COBOL
Reply with quote

certainly yes if You have the skills,
here is a link to base xx encoding document
http://www.faqs.org/rfcs/rfc3548.html

but I would suggest that such issue be taken to some higher level in the decision/planning chain
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Jun 17, 2009 10:11 am    Post subject:
Reply with quote

Hello,

What is the host for the 3rd party system?

What happens if you FTP a test file from that platform to the mainframe using ASCII transfer?

I'd suggest you create a small file with the values of x'00' - x'ff' and transmit this to the mainframe. This test works well when each record in the test file is the next series. For example,
Code:
the first record is: x'000102030405060708090a0b0c0d0e0f'
the second rec is:   x'101112131415161718191a1b1c1d1e1f'

and so on until:     x'f0f1f2f3f4f5f6f7f8f9fafbfcfdfeff'


After receiving this test file, check the values in the mainframe table.

Reply if any of the conversions are not as expected.
Back to top
View user's profile Send private message
yogeshwar_ade

Active User


Joined: 31 Aug 2006
Posts: 103
Location: INDIA

PostPosted: Wed Jun 17, 2009 10:13 am    Post subject:
Reply with quote

enrico ,

I gone through the given URL, but it just have details of Encoding format .... But doesn’t have any pointer for conversion using COBOL?

Thanks for Quick Reply.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Wed Jun 17, 2009 10:24 am    Post subject: Reply to: BASE 64 to EBCDIC through COBOL
Reply with quote

as I said You need the skill to implement it Yourself
never said that the link contained the code icon_cool.gif
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1224
Location: Israel

PostPosted: Wed Jun 17, 2009 6:02 pm    Post subject:
Reply with quote

Check free tools at: http://www.redversconsulting.com/tools.php
If I remember well, you can get there free cobol source.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Jun 17, 2009 10:36 pm    Post subject: Reply to: BASE 64 to EBCDIC through COBOL
Reply with quote

Misunderstood the question. . . icon_confused.gif

Sorry 'bout that. . .

d
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
This topic is locked: you cannot edit posts or make replies. RANDOM Function in COBOL swapnil781 COBOL Programming 2 Tue Nov 15, 2016 6:17 pm
No new posts Regarding COBOL Stored Procedure opti... selvamsrinivasan85 DB2 4 Fri Nov 04, 2016 8:57 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us