If i have a variable
A pic 9(2) value 10
Compute A = a - 100

what will be the value of A and will there be any error
becoz of the Negative value

Answer Posted / kiran

90 ill come "-" sign wont come bcoze we didnt mention A as a
signed variable

ex

A pic s9(2)

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

1645


) how do u code after getting data?

1578


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

1924


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

727


What is the utilization of copybook in cobol? Could we utilize a similar copybook?

709






State the various causes of s0c1, s0c5 and s0c7.

656


what is difference between cobol and cobol/400

21556


Write a program to enter and display the names of students in a class using the occurs clause.

647


Name some of the examples of COBOl 11?

2676


Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks

2331


I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?

1798


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2051


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

1520


Give some examples of command terminators?

751


When is inspect verb is used in cobol?

671