i was faced one question-
i have value
-00001234.56
Suppress the zeroes and the output should be -1234.56
But Not - 1234.56 spaces should not be available after suppressing the zeroes.


logic in jcl and cobol?



i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be ..

Answer / Rahul Jha

In COBOL, you can use the PIC S9(4)V99 format for the field containing the number. In JCL, you can use the REDEFINES clause to create a new symbol for the edited field without leading zeros.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More COBOL Interview Questions

i friends greetings to the day...!!! I face a quation like"while runnig the programe every day i have to access the previous day updates only...!! Ex:- Let last day 100 customers took bank account i have to select those customers only.."

4 Answers   CSC,


What are the various section in data division and briefly explain them.

1 Answers  


why we are using set in searchall?

4 Answers   IBM,


Can 88 level variable be declared in FD section..?

1 Answers   Infosys,


How do get the result of your program directly on your pc?

1 Answers   UST,


when SE37 SB37 and sd37 occurs how to increase the volume , primary quantity and secondary quantity?

1 Answers   Hewitt,


s9(18) comp-3:: What is the size of memory it takes internally?

4 Answers  


if one main program ,n -subprograms are then which call you follow ?why reasonuhg

4 Answers   UHG,


What are the differences bitween cobol and cobol-2?

1 Answers   Wipro,


How are the next sentence and continue different from each other?

1 Answers  


Is it possible to mutliply a comp variable with an comp-3 variable. Will there be any error if i do it?

3 Answers   IBM, UST,


after udatingg first 110 rows, my job abends. now how do i change my cobol program so that when i restart the Job it will start updating from 111th row ( i.e in next run I di=ont want to update those 110 rows which are already been updated in the first run before job abend)

7 Answers   Allianz, Wipro,


Categories