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 

Modify LOW-VALUE

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


Joined: 05 Apr 2006
Posts: 56
Topics: 20

PostPosted: Thu Jul 20, 2006 8:22 am    Post subject: Modify LOW-VALUE Reply with quote

Hi all,

Can we modify field which is LOW-VALUE through the COBOL pgm?

Thank you for the help
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Thu Jul 20, 2006 8:35 am    Post subject: Reply with quote

ldushkin,

huh? Do you want to modify the contents of figurative constant LOW-VALUE ? Low-value reprensts the lowest ordinal position in thecollating sequence used. For the EBCDIC collating sequence, the character is X'00'; for other collating sequences, the actual character used depends on the collating sequence used.

Why don't you show what you are trying to do with an example.

Kolusu
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

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


Joined: 05 Apr 2006
Posts: 56
Topics: 20

PostPosted: Thu Jul 20, 2006 10:20 am    Post subject: Reply with quote

this is file in HEX. I need to modify LOW-VALUE field in cobol
Code:

------------------------------
000100 1111111      3333333   
       FFFFFFF000000FFFFFFF444
       11111110000003333333000
------------------------------
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Thu Jul 20, 2006 10:25 am    Post subject: Reply with quote

ldushkin,

what do you want to change that low-value ? spaces? or someother value ? If Spaces then try this
Code:

 INSPECT ws-field-to-be-modified REPLACING ALL X'00' BY X'40'


Hope this helps...

Cheers

Kolusu
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

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


Joined: 05 Apr 2006
Posts: 56
Topics: 20

PostPosted: Thu Jul 20, 2006 10:29 am    Post subject: Reply with quote

Thank you
Back to top
View user's profile Send private message
coolman
Intermediate


Joined: 03 Jan 2003
Posts: 283
Topics: 27
Location: US

PostPosted: Wed Jul 26, 2006 4:03 pm    Post subject: Reply with quote

Even a simple MOVE SPACES would have helped you after laying out the proper file structure.
________
List of GM bellhousing patterns history
Back to top
View user's profile Send private message
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