IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Problem with the data


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Amsar

New User


Joined: 26 Sep 2008
Posts: 84
Location: Chennai

PostPosted: Fri Apr 17, 2009 1:02 am
Reply with quote

Hi All,

I have varable ws-var PIC x(8). I am moving value 'SSDMTR' in this varable but some junk value is getting in variable in last two bytes. I have initalize the variable with spaces. Value it displaying in sysout is SSDMTR ¼. ¼ is it a LOW-VALUE?

I have tried with inspect replacing all low-value by spaces still this value i am getting this value SSDMTR ¼.

Please let us know me your suggestion.


Thanks,
Amsar
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Apr 17, 2009 1:08 am
Reply with quote

My handy-dandy z/Architecture Reference Summary, SA22-7871, indicates that the symbol is hex B7 in EBCDIC, which is a far cry from LOW-VALUES (hex 00).

What does the MOVE statement look like -- and what are the DATA DIVISION definitions of the sending and receiving fields? There's more than one possible cause for what you're seeing, so fixing it at the source is the preferred solution.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Apr 17, 2009 1:27 am
Reply with quote

Hello,

Suggest you look at the "input" with HEX ON and post what you find.
Back to top
View user's profile Send private message
Amsar

New User


Joined: 26 Sep 2008
Posts: 84
Location: Chennai

PostPosted: Fri Apr 17, 2009 1:43 am
Reply with quote

Hi dick

The value in hex format is as below

Code:
Command ===>                                                  Scroll ===> PAGE
****** ***************************** Top of Data ******************************
000001  SDMTR ¼                                                               
       4ECDED0B0444444444444444444444444444444444444444444444444444444444444444
       024439170000000000000000000000000000000000000000000000000000000000000000
------------------------------------------------------------------------------
****** **************************** Bottom of Data ****************************
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Apr 17, 2009 1:59 am
Reply with quote

Hello,

Well, x'01B7' is decimal 439. Does 439 have any special meaining?

What are these input records? Is that 8-byte value the key to some file or table?

I'm not so sure that it should just be discarded. . .
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Fri Apr 17, 2009 1:59 am
Reply with quote

Robert Sample wrote:
What does the MOVE statement look like -- and what are the DATA DIVISION definitions of the sending and receiving fields?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Apr 17, 2009 2:01 am
Reply with quote

Robert Sample wrote/requested:
Quote:
What does the MOVE statement look like -- and what are the DATA DIVISION definitions of the sending and receiving fields?


Amsar,

stop showing us things that have lead you to a point where you can not solve your own problem.

not only have you not provided the requested info,
you have shown us
<SPACE>SDMTRx'01b7'
from some kind of abbreviated screen display
when your goal was SSDMTR.

not only do you have unwanted characters following your desired data,
you are missing the first character, also.

start by explaining what this screen display is,
then provide the info that Robert requested.

Until you provide us with some info, you are stuck with the problem.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts How to save SYSLOG as text data via P... All Other Mainframe Topics 2
No new posts Store the data for fixed length COBOL Programming 1
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts SCOPE PENDING option -check data DB2 2
Search our Forums:

Back to Top