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...

01 a pic s9(5) value '-12345' how it will be stored

Answer Posted / gopal chand

01 a pic s9(5) value '-12345' how it will be stored

It will be stored :
1234u

In data files Negative Values are Stored as per the
following manner

0-p 1-q 2-r 3-s 4-t 5-u 6-v 7-w 8-x 9-y

The Last Digit of the No. is stored like this in the
following example.

Example: 01 a pic s9(4)v99

move -3456.23 to a.
display a.
Output is : 34562s

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to use the same COBOL program in Batch and CICS on lines? explain with an example

2389


What are the pertinent COBOL commands?

3175


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

2469


What are the different rules of SORT operation?

1138


) how do u code after getting data?

2150


Write a program that uses move corresponding.

1144


What is the local-storage section?

1146


what is difference between cobol and cobol/400

22921


Write down the divisions of cobol program?

1253


How arrays can be defined in COBOL?

1218


I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.

2429


For rewrite, why is it mandatory that file needs to be opened?

1107


What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?

1203


1.give the details about WHEN OTHER. 2. how many form are available in evaluate.

2108


If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly

3162