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
 

 

PIC S99V9 USAGE COMP-3 VS PIC -ZZ.9.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
linc

New User


Joined: 25 Aug 2008
Posts: 25
Location: china

PostPosted: Tue Sep 23, 2008 9:08 am    Post subject: PIC S99V9 USAGE COMP-3 VS PIC -ZZ.9.
Reply with quote

Hi guys:
I have one easy question.
Code:

01 w-rec.
        05 W-REC-1 PIC S99V9 USAGE COMP-3.
        05 FILLER  PIC X(03).
01 W-OUT.
     05 W-OUT-1 PIC -ZZ.9.
     05 FILLER PIC X(03).


How many bytes does S99V9 and -ZZ.9 occupy?
Can I move w-rec to w-out directly?

Thanks.
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: Tue Sep 23, 2008 10:39 am    Post subject:
Reply with quote

Hello,

This is basically the same thing you asked about here:
http://ibmmainframes.com/viewtopic.php?p=154673&highlight=#154673

Quote:
Can I move w-rec to w-out directly?
The compiler will allow the move. It will not do the move that you want (similar to the display that did not do what you wanted in the linked topic).

Quote:
How many bytes does S99V9 and -ZZ.9 occupy?
I suspect you really mean s99v9 comp-3 icon_confused.gif The first should take 2 bytes (if comp-3) and the second 5 bytes. If you run a compile, you will see the lengths in the compile output.
Back to top
View user's profile Send private message
linc

New User


Joined: 25 Aug 2008
Posts: 25
Location: china

PostPosted: Tue Sep 23, 2008 10:43 am    Post subject:
Reply with quote

thanks.It's very useful.
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 Need inputs on Space requirement and... ashek15 IMS DB/DC 0 Sat Apr 01, 2017 8:26 am
No new posts Protection Exception while move 0 to ... Kevin Vaz CICS 10 Tue Oct 18, 2016 4:19 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
No new posts Need help to populate date in COMP-3 ... chetanambi DFSORT/ICETOOL 3 Tue Jun 21, 2016 12:25 pm
No new posts comparing comp-3 and unpacked numbers juares castro COBOL Programming 3 Mon May 30, 2016 6:46 pm


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