Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

HIGH and LOW values in Natural

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Java & MQSeries
View previous topic :: :: View next topic  
Author Message
monasu1998

Active User


Joined: 23 Dec 2005
Posts: 176
Location: India

PostPosted: Wed Aug 06, 2008 6:00 pm    Post subject: HIGH and LOW values in Natural
Reply with quote

Hi,

How can I move HIGH values and LOW values in Natural?

Thanks,
Back to top
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Wed Aug 06, 2008 11:53 pm    Post subject:
Reply with quote

Try something like this:
Code:
DEFINE DATA LOCAL
1 #HIGH-VAL (A3)
1 #LOW-VAL  (A3)
END-DEFINE
*
MOVE H'FFFFFF' TO #HIGH-VAL
MOVE H'000000' TO #LOW-VAL
*
END


O.
Back to top
View user's profile Send private message
monasu1998

Active User


Joined: 23 Dec 2005
Posts: 176
Location: India

PostPosted: Thu Aug 07, 2008 9:33 am    Post subject:
Reply with quote

Hey Ofer,

Thank you for your response.
Could you please tell me to which data types we can move HIGH/LOW values?

Thanks
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Thu Aug 07, 2008 10:54 am    Post subject:
Reply with quote

There is no such thing as LOW/HIGH VALUES in NATURAL. In my example, I simply moved a hexadecimal string to a variable. The values of these strings are equivalent to COBOL's LOW/HIGH VALUES.

O.
Back to top
View user's profile Send private message
monasu1998

Active User


Joined: 23 Dec 2005
Posts: 176
Location: India

PostPosted: Fri Aug 08, 2008 6:48 pm    Post subject:
Reply with quote

Fine.
But the destination variable can be of any data type or that has to be of Alphanumeric data type.

2ndly what does it mean by H'0D'?

Thanks
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Java & MQSeries All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts ESQA overflow - high ECSA utilization vasanthz All Other Mainframe Topics 1 Thu Dec 29, 2016 7:06 am
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm
This topic is locked: you cannot edit posts or make replies. Natural ADABAS Opening with CTS enikhilk Mainframe Jobs 0 Wed Nov 30, 2016 5:37 pm
No new posts Overlaying one set of charater values... Kevin Lindsley SYNCSORT 7 Sat Nov 05, 2016 3:21 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us