how to remove leading spaces and zeroes in a cobol
variable.is there any easy way to do it
Answers were Sorted based on User's Feedback
Answer / surendra
find the lenght of the leading spaces then move the actual
value of the variables using reference modification to
another working storage variable.
| Is This Answer Correct ? | 4 Yes | 2 No |
What do you understand by psb and acb?
WORKING-STORAGE SECTION. 01 VAR1 COMP-2 VALUE 0. PROCEDURE DIVISION. MOVE 10.2115 TO VAR1. DISPLAY 'VAR1 =' VAR1. GOBACK. 10.2115 is stored as .10211499999999996E 02 in OS VS Cobol 10.2115 is stored as .10211500000000000E 02 in ecobol. Any reason why?
If i initialize the 01 level variable in array, will it initialize all the array elements (occurs)?
what is mainframe? what is the mainframe software ? what is use in s/w field?
how we separate the cobol cics statements from cobol&cics programming?
How can i write a comp-3 variable into a sequential file should i declara the field in the file description as comp- 3?
how can u find out just by seeing wheater it is main program or sub program ? any two ways to identify reply soon ?
What is the difference between comp and comp-3 usage?
wht is the diff b/w if and evaluate stmts ?
which one is better among static call and dynamic call?
What type of SDLC u followed? Why?
is it possible to declare index in cobol program? if it is not why its tell me pls