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

BASE 64 to EBCDIC through COBOL


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Jun 17, 2009 10:05 am
Reply with quote

certainly yes if You have the skills,
here is a link to base xx encoding document
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

Moderator Emeritus


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

PostPosted: Wed Jun 17, 2009 10:11 am
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Jun 17, 2009 10:24 am
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: 1353
Location: Israel

PostPosted: Wed Jun 17, 2009 6:02 pm
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

Moderator Emeritus


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

PostPosted: Wed Jun 17, 2009 10:36 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top