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
 

 

give one example for LOW & HIGH functions in PL/1

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
G.S.Sekhar

New User


Joined: 19 Aug 2005
Posts: 5

PostPosted: Thu Sep 29, 2005 5:41 pm    Post subject: give one example for LOW & HIGH functions in PL/1
Reply with quote

Hi,

If anyone give explanation and example for LOW & HIGH functions in PL/1. It's so greatful to me. Thanks in advance.
Back to top
View user's profile Send private message

Athanga

New User


Joined: 29 Sep 2005
Posts: 9

PostPosted: Fri Sep 30, 2005 11:13 pm    Post subject: Re: give one example for LOW & HIGH functions in PL/1
Reply with quote

HI...

check this ..

let a variable be ABC and you want to initialize with low values or high values then use


ABC = LOW(CSTG(ABC))
ABC = HIGH(CSTG(ABC))

here CSTG menas current storage area of that variable will be taken or you can hard code to how many bytes of that variable need to be initialized.

ie

ABC = LOW(10)
ABC = HIGH(10)


I am not 100% sure..
Back to top
View user's profile Send private message
Sridevi_C

Active User


Joined: 22 Sep 2005
Posts: 104
Location: Concord, New Hampshire, USA.

PostPosted: Sat Oct 01, 2005 1:27 am    Post subject:
Reply with quote

Hi Sekhar,
LOW and HIGH buitin functions return character that is the lowest and highest respectively of the collating sequence.The returned character is repeated depending upon the length specified.
Example:
NAME = LOW(25);
Say,NAME is declared as CHAR(25) and the lowest value of the collating sequence is BLANK.Now the above statement moves 25 blanks to NAME,ie. NAME is initialized to spaces.
My explanation resembles Athanga's.I am very sure about what I spoke, but I couldn't speak in terms of CSTG.
Hope this helps...
Thanks!
Sridevi.
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 -> PL/I & Assembler 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 High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm
No new posts COBOL DB2 - CALL statement - high CPU... TS70363 DB2 15 Sun Sep 11, 2016 6:07 am
No new posts Regd Date Functions in Syncsort muralikrishnan_new SYNCSORT 2 Fri Jul 01, 2016 8:21 pm
No new posts CICS- Moving to High availability vicky10001 CICS 8 Fri Oct 23, 2015 7:49 pm


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