Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
where exactly we use LOW-VALUES.(FIGARATIVE const)

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
ravikumarreddy
Warnings : 1

New User


Joined: 29 Jul 2005
Posts: 23

PostPosted: Thu Sep 01, 2005 2:28 pm    Post subject: where exactly we use LOW-VALUES.(FIGARATIVE const)
Reply with quote

HI,

here i need inf where we exactly use LOW-VALUES(FIGARATIVE CONST) concept.
and also where exactly REDIFINES we use.
where exactly we use INDEX?
Back to top
View user's profile Send private message

nrsmca

New User


Joined: 25 May 2005
Posts: 14

PostPosted: Thu Sep 01, 2005 3:34 pm    Post subject: Re: where exactly we use LOW-VALUES.(FIGARATIVE const)
Reply with quote

1.If u want to move zeros in numeric identifiers , spaces in alphanumeric identifiers and group identifier otherwise u can use initialize.

2.If u want to share the same memory location and corresponding values u can use redefine.

3.First u should declare the usage is Index(like that) and it points to address of the table's subscript. We can change the value of index using SET...
Back to top
View user's profile Send private message
mainframesguru

New User


Joined: 24 Jun 2005
Posts: 36
Location: Hyderabad

PostPosted: Thu Sep 01, 2005 5:45 pm    Post subject:
Reply with quote

Hi


Little Correction for 3rd Answer

While using Index, you are not supposed to Declare it.It is internally
declared.


Thanks
Vamshi
ICC-ISH
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat Sep 03, 2005 11:28 pm    Post subject:
Reply with quote

A further correction to 3:

It is declared in the table declaration itself and it contains the offset into the table of the entry being referenced in the PD stmt.
Back to top
View user's profile Send private message
tatonka

New User


Joined: 08 Sep 2005
Posts: 1
Location: ohio

PostPosted: Thu Sep 08, 2005 8:42 pm    Post subject: Low-values
Reply with quote

LOW-VALUES moves hex '00' to everybyte, conversely HIGH-VALUES moves hex'FF' . It does not make numerics equal to zeros, hex'F0' or alphanumerics equal to spaces , hex '40' , although it might look that way on some displays because LOW-VALUES is non printable, same with HIGH-VALUES. So on some displays it looks like spaces but its not. Back in the day of 1/2 meg mainframes, it was important to move LOW-VALUES to everything because the CPU would compress them in storage and thus save memory bytes. Now a days you use it mainly for key manipulation, ie move LOW-VALUES to a key and do a start not less than and a read next and you will get the first record. Conversely move HIGH-VALUES to a key do a start not greater than and a read backward and you get the last record. You can also move LOW-VALUES to the 01 level of a table initially, then index thru until you hit LOW-VALUES and you know your done, stuff like that.
Back to top
View user's profile Send private message
krishnaiahc

New User


Joined: 31 Aug 2005
Posts: 21

PostPosted: Mon Oct 03, 2005 3:29 am    Post subject:
Reply with quote

HI,

Can you please provide me the documents related to LOW-VALUES & HIGH-VALUES.

Thanks,
Krishna.
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts attchmvs from rexx subroutine that re... harisukumaran CLIST & REXX 1 Fri Jan 19, 2018 5:29 am
No new posts Extend the decimal values in DIVISION Balaryan DFSORT/ICETOOL 3 Thu Oct 05, 2017 4:05 pm
No new posts Working with hex values in Filemanage... Emile Straker IBM Tools 1 Tue Sep 12, 2017 1:42 am
No new posts DB2 NULL Values display V S Amarendra Reddy DB2 3 Thu Sep 07, 2017 6:59 pm
No new posts Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us