Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Working with hex values in Filemanage... Emile Straker IBM Tools 0 Tue Sep 12, 2017 1:42 am
No new posts DB2 NULL Values display V S Amarendra Reddy DB2 3 Thu Sep 07, 2017 6:59 pm
No new posts Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm
No new posts Remove leading spaces from numeric field rexx77 SYNCSORT 6 Wed Sep 06, 2017 2:15 am
No new posts BI,TO=ZD Changing Values Tyler Dunbar DFSORT/ICETOOL 4 Tue Jul 25, 2017 12:12 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us