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 

How to pass high values in PL/1

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


Joined: 20 May 2003
Posts: 45
Topics: 15

PostPosted: Wed Dec 15, 2004 6:34 am    Post subject: How to pass high values in PL/1 Reply with quote

Hi

Can anyone let me know how to pass high values in PL/1 to a field name

I have to pass X'FFFF' to a FIELD-NAME

I tried give

Code:
  DCL FIELD-NAME char (02);
           FIELD-NAME = X'FFFF' ;


its giving a compilation error.

Can anyone help me
Back to top
View user's profile Send private message Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed Dec 15, 2004 8:57 am    Post subject: Reply with quote

Rama prayaga,

try coding

Code:

 DCL FIELD-NAME CHAR VALUE('FFFF'X);


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
bauer
Intermediate


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

PostPosted: Thu Dec 16, 2004 5:43 am    Post subject: Reply with quote

Hi,

other solution: Use builtinfunctions LOW or HIGH to pass low / high values.


Example:

DCL FIELD CHAR(...) AUTO INIT (HIGH(CSTG(FIELD)) ;


or

FIELD = HIGH(4)


bauer
Back to top
View user's profile Send private message
Rama_Prayaga
Beginner


Joined: 20 May 2003
Posts: 45
Topics: 15

PostPosted: Fri Dec 17, 2004 9:10 am    Post subject: Reply with quote

Thanks .I used High Built-in funtions.

Thanks once agian,

Rama prayaga
Back to top
View user's profile Send private message Yahoo Messenger
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