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

How do you reference the fixed block file formats from cobol programs

1235


What is the utilization of copybook in cobol?

1199


example for sub strings ? and refernce modifications whit output pls

2323


) How do u handle errors in BMS macro

2058


) How do u handle errors in BMS macro?

1978


) how do u code after getting data?

2156


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

1412


Differentiate between structured cobol programming and object-oriented cobol programming.

1161


) what is the difference between AID and HANDLE AID?

2160


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

1102


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

1356


I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.

1568


EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

2554


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

1242


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

2011