How is sign stored in a COMP field ?
Answers were Sorted based on User's Feedback
Answer / dev
the most significant bit is used as a sign bit if it is set
then the field is negetive if not than positive
| Is This Answer Correct ? | 23 Yes | 1 No |
hie everyone.i just completed my b.tech in electronics and joined mainframes course.am i doing right course for my better future?please help me with your suggestions.ill be very thankful to you guys.
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
i have a file which contains records like 10,30,90,50,20,40,80,60,70 i want to display these records in reverse order like 70,60,80,40,20,50,90,30,10 please give me the cobol code (do not sort the records)
3 Answers Cap Gemini, Mind Tree,
diffrence between renames and redifnes with examples
i want a program using by if, evaluate , string, unstring, perform, occurs?
How to pass return codes from cobol to jcl?
in how many mode we can open a file ?
What is the maximum size of a 01 level item in COBOL I? in COBOL II?
What is CALL statement in COBOL?
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
Move Zeroes to I move 5 to j perform para1 varying I from 10 by -2 until I = 0 display j. para1. Add 5 to j. What’ll be the value after execution of display stmt. A) 35 B) 40 C) 30 D) 25 please explain how?
How to use the same COBOL program in Batch and CICS on lines? explain with an example