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
 

 

Moving spaces in low values and high values

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

New User


Joined: 11 Nov 2005
Posts: 26

PostPosted: Tue Jul 04, 2006 8:00 pm    Post subject: Moving spaces in low values and high values
Reply with quote

hi,

for initializing few variables instead of moving spaces in few places low values or high values are being moved.

is there any specific reason behind this?
Back to top
View user's profile Send private message

Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1232
Location: Israel

PostPosted: Tue Jul 04, 2006 9:07 pm    Post subject:
Reply with quote

There may be a few reasons why to use L-V or H-V:
  • CICS maps are usually initialized with LOW-VALUES because they contain a mix of DISPLAY and COMP fields (L-V in a COMP field is the same as 0).
  • After a sort. L-V always appear at the beginning and H-V at the end. There may be some use for this property.
  • If you have a table (with OCCURS) in W-S, move first H-V, then load the data. When you scan the table, reaching an occurs with H-V will indicate the end of data.
  • You may want to make the difference between an empty value (SPACES) and no value (LOW-VALUES), just like DB2 NULL.
I'm sure there are more possibilities...
Back to top
View user's profile Send private message
parikshit123

Active User


Joined: 01 Jul 2005
Posts: 269
Location: India

PostPosted: Wed Jul 05, 2006 12:41 pm    Post subject:
Reply with quote

Hi,
Just to add to that,

Low values and lowest values in the collating sequence where as high value is highest values in the collating sequence.

The collating sequence depends on underlying machines to machines. Mainframe's collating sequence is based on data representation in EBCDIC (Extended binary coded decimal ). This is different for numeric and non numeric data types.

It depends on your application logic whether to move low values/high values in a given variable or initialize with some specific values like SPACES.
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 BI,TO=ZD Changing Values Tyler Dunbar DFSORT/ICETOOL 4 Tue Jul 25, 2017 12:12 am
No new posts Sorting of hex values Saurabh_mi DFSORT/ICETOOL 11 Thu May 25, 2017 3:49 pm
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Compare two files and subtract values ameetmund DFSORT/ICETOOL 7 Fri Mar 31, 2017 3:35 pm
No new posts Check Binary Values for symbols gandikk CA Products 3 Tue Mar 21, 2017 5:11 am


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