RPG/400 How to Pass Hexa values

695 pts.
Tags:
AS/400
Hexadecimal values
RPG
RPG/400
i want to pass hexadecimal values from calling progrm to called program through PARM parameters can any one suggest me how to pass including OCTADECIMAl Values

Answer Wiki

Thanks. We'll let you know when a new response is added.

Hi,

Just pass it as a character string – should work.

Regards,

Martin Gilbert.

=============================================================

Every parameter value is always a hexadecimal value; they just aren’t often specified in hexadecimal notation. Therefore, the question doesn’t quite make sense.

If nothing else, at least an indication of what language is being asked about would be helpful. In particular, the language executing the CALL needs to be known in order to make some sense.

Tom

Discuss This Question: 5  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Mohan K
    My Program CALLB accepts numeric value. So how should I call this program and pass a value? It gives error when we pass characer string - decimal data error. Like in C, should we prefix it with X like '0x1' for passing the value 01 in hexa?
    695 pointsBadges:
    report
  • Ghhh
    It depends on the kind of numeric (it could be in zoned, packed or binary form). Do you know which it is?
    40 pointsBadges:
    report
  • Gilly400
    Try this : X'01F' Regards, Martin Gilbert.
    23,730 pointsBadges:
    report
  • Gilly400
    Sorry, has to be an even number of positions including the F :- X'001F' Regards, Martin Gilbert.
    23,730 pointsBadges:
    report
  • jayapardhi
    wher pass hexa decimal value..in rpg
    10 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following