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
 

 

Why Am I getting Low values on Initialize instead of spaces

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
syed-sameer-ahmed
Warnings : 2

New User


Joined: 22 Feb 2007
Posts: 46
Location: Bangalore

PostPosted: Thu Aug 27, 2009 10:40 am    Post subject: Why Am I getting Low values on Initialize instead of spaces
Reply with quote

Code:
01  WS-TABLE.                                             
    05 WS-TAB   OCCURS 2000  TIMES INDEXED BY WS-SUB.     
    10 WS-TABLE-1.                                       
                                                         
     15  FILLER                 PIC X(005)   VALUE SPACES.
     15  WS-NAME-HOLD                         
                                PIC X(005).               
     15  FILLER                 PIC X(015)   VALUE SPACES.
     15  WS-ACC-HOLD  PIC 9(003).               
     15  FILLER                 PIC X(015)   VALUE SPACES.
     15  WS-ACC-CD-HOLD                         
                                PIC X(001).               


and the output is defined as

Code:

OUTPUT-RECORDS          PIC X(200) VALUE SPACES


When I move WS-TABLE to OUTPUT RECORDS and write to the file.

Ia m getting low values in the place of FILLERS.

ex :

A1234<Lowvalues>S12<Low VAlues>1


I dont know why I am getting low values here.
Back to top
View user's profile Send private message

dick scherrer

Site Director


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

PostPosted: Thu Aug 27, 2009 10:58 am    Post subject:
Reply with quote

Hello,
Quote:

I dont know why I am getting low values here.
Because you did not specify a value for them. Initialize does not place a value in FILLER fields. Look here:

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/handheld/Connected/BOOKS/igy3lr40/5.3.4

One way to do what i believe you want is to move SPACES to the entire area, then INITIALIZE. . .

At the top of the page is a link to "IBM Manuals". You want to become both familiar and comfortable with the manuals. . .
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 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
No new posts To display values of multiple rows in... vinu78 DB2 2 Thu Mar 09, 2017 1:20 pm


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