MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

PL/1, HEXIMAGE function, opposite of

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
bauer
Intermediate


Joined: 10 Oct 2003
Posts: 317
Topics: 50
Location: Germany

PostPosted: Mon May 16, 2011 8:39 am    Post subject: PL/1, HEXIMAGE function, opposite of Reply with quote

Hi all,

HEXIMAGE functions returns a Hex presenation of a storage area.

Is there any function to fill memory with a given hex presentation.

Example: Given is '404040' in a char(6) variable, and i like to move 3 blanks (assuming ebcdic coding) to a storage area.

I cann't find any builtin function as opposite to heximage builtin function.

regards,
bauer
Back to top
View user's profile Send private message
papadi
Supermod


Joined: 20 Oct 2009
Posts: 594
Topics: 1

PostPosted: Wed May 18, 2011 1:50 pm    Post subject: Reply with quote

I don't "do" pl/i, but is there some reason a literal or a variable cannot be used?
_________________
All the best,

di
Back to top
View user's profile Send private message
bauer
Intermediate


Joined: 10 Oct 2003
Posts: 317
Topics: 50
Location: Germany

PostPosted: Wed May 18, 2011 2:23 pm    Post subject: Reply with quote

Yes, there is a reason.

I have input format '40404512E4' and I have to move this hex values to a storage area.
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Sat May 21, 2011 3:23 pm    Post subject: Reply with quote

Code:
char_var = '  xyz';


where x is whatever x'45' is, y is whatever x'12' is and z is whatever x'e4' is.
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group