Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Hi All,
Can anyone tell me how we can MOVE value of a X(19)
variable to a S9(17) COMP-3 variable?
Answer with an Example will be of great help.

Answer Posted / vamsi

First of all s9(17) comp-3 will occupy 9 bytes and X(19) has
19 bytes of memory.

When we move the text value to an comp-3 field, we will get
Soc7 error. We cannot move alpha values to numeric fields.
If the X(17) contain numeric values then we can move this
field to s(17) comp-3 field and we can move only 9 bytes
other data will be trucated.

Is This Answer Correct ?    4 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need

1384


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

1397


What is the LINKAGE SECTION used in COBOL?

1602


What are the different types of condition in cobol and write their forms.

1154


What is rmode(any) ?

1332


What is an in line perform? When would you use it? Anything else you wish to say about it.

1143


write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc

1301


What is the difference between a binary search and a sequential search what are the pertinent cobol?

1198


What is the use of intialize verb?

1299


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

2607


i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com

2278


How do u write test cases?

2111


Whats the difference between search & search ALL?

6666


Why did you choose to work with ibm mainframe cobol programming?

1162


Why occurs cannot be used in 01 level in COBOL?

1206