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
 

 

How the file display a comp-3 item

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

New User


Joined: 26 Jul 2005
Posts: 55

PostPosted: Sun Dec 11, 2005 9:01 am    Post subject: How the file display a comp-3 item
Reply with quote

In a file when i am moving value of 12345 to comp-3. When i am opening a file how it will be displayed?.
Back to top
View user's profile Send private message

iknow

Active User


Joined: 22 Aug 2005
Posts: 413
Location: Colarado, US

PostPosted: Sun Dec 11, 2005 11:44 am    Post subject: Re: comp-3
Reply with quote

Hi mf_karthik,

It depends on the size of your comp-3 variable.

let us assume that your Comp-3 variable is 9(5). So when you move 12345 to comp-3 it will be displayed as "2345+" because always LSB will be replaced by "+" in case of comp-3.


Correct me if I am wrong.
Back to top
View user's profile Send private message
mf_karthik

New User


Joined: 26 Jul 2005
Posts: 55

PostPosted: Sun Dec 11, 2005 8:20 pm    Post subject: Re: comp-3
Reply with quote

thanks for your answer.how it appear in mainframe ie(vs-cobol)
Back to top
View user's profile Send private message
iknow

Active User


Joined: 22 Aug 2005
Posts: 413
Location: Colarado, US

PostPosted: Mon Dec 12, 2005 6:26 am    Post subject: Re: comp-3
Reply with quote

Hi mf_karthik,


As a follow up to my previous post, check the correct answer.
When you move '12345' to comp-3 variable , the result will be "12345+".

Sorry for the inconvenience.
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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am
No new posts Occurrence of various strings within ... TS70363 JCL & VSAM 1 Thu Apr 27, 2017 8:18 pm


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