1. Sufyan Maghur
  2. PowerBuilder
  3. Wednesday, 8 November 2023 16:21 PM UTC

We are creating a STRING file to send to CICS and they are expecting HEX Characters... Is there a way to create HEX Character set using PB?

Miguel Leeuwe Accepted Answer Pending Moderation
  1. Wednesday, 8 November 2023 20:45 PM UTC
  2. PowerBuilder
  3. # 1
Comment
  1. Chris Pollach @Appeon
  2. Wednesday, 8 November 2023 21:07 PM UTC
Hi Miguel;

I don;t think that will work as Sufyan needs to have the data stream EBCDIC encoded for CICS (mainframe) to which the Blob() method does not support that encoding type.

Regards ... Chris
  1. Helpful
  1. Miguel Leeuwe
  2. Thursday, 9 November 2023 05:16 AM UTC
That's not very well described by the OP then.

Also, using the tilde method, IF having to encode to EBDIC, you'd still have to use a conversion table like this?

https://www.ibm.com/docs/en/iis/11.7?topic=tables-ascii-ebcdic

regards.
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 8 November 2023 17:58 PM UTC
  2. PowerBuilder
  3. # 2

Hi Sufyan;

  I would suggest looking at the Tilde command.  For example ...

String   ls_data

ls_data = "~h00"+ "~h43" + "~hFF" + ...   // Build a Hex based string

HTH

Regards ... Chris

Comment
There are no comments made yet.
Sufyan Maghur Accepted Answer Pending Moderation
  1. Wednesday, 8 November 2023 16:33 PM UTC
  2. PowerBuilder
  3. # 3

Yes I mean Hexadecimal...

For Example our string starts with

ls_mq_module = "CIH 0002" This is first part of the string BUT they are expecting these values in Hexadecimal specifically x"0"

We create the STRING in PB and Pass the String to CICS Via IBM MQ (We are using RESTCLIENT)

Comment
There are no comments made yet.
Francisco Martinez @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 8 November 2023 16:29 PM UTC
  2. PowerBuilder
  3. # 4

Hi Sufyan,

 

What do you mean "hex characters"?
Hexadecimal is a way of representing numbers, so "Hex Characters" is a foreign concept to me.

Can you give an example of what CICS is expecting?

 

Regards,
Francisco

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.