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 SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts Overlaying one set of charater values... Kevin Lindsley SYNCSORT 7 Sat Nov 05, 2016 3:21 am
No new posts Low values Results from VARCHAR FORMAT balaji81_k DB2 10 Thu Oct 20, 2016 1:18 am
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm
No new posts How can we create a flat file in JAVA... rakesh.v18 Java & MQSeries 7 Fri Sep 23, 2016 10:46 pm


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