I need to build a hex string from two screen entered values (i.e. &scrn1 = 7A, &scrn2 = A1) that are then joined to a constant (404040) that is then passed to a program as a hex value (X?7AA1404040?) in a CL along with other parms. Currently, every time I need this program, I have to manually change the hex values and recompile. How would I accomplish this?
You can change CL variables by using their hex values. Example:
DCL VAR(&TEST) TYPE(*CHAR) LEN(1)
CHGVAR VAR(&TEST) VALUE(x''7A')
MORE INFORMATION ON THIS TOPIC
The Best Web Links: Tips, tutorials and more.
Ask your systems management questions--or help out your peers by answering them--in our live discussion forums.
Read this Search400.com Featured Topic: Monitoring your iSeries system .
Ask the Experts yourself: Our systems management gurus are waiting to answer your technical questions.
Dig Deeper on Performance
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.