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 will happen if a variable is declared as below.. Explain with an example? Working storage section:- 01 WS-VARX PIC X(10) VALUE 'ABCDEFGHIJ'. 01 WS-VARN REDEFINES WS-VARX PIC 9(5) VALUE '12345'. What will happen I am going to Display the WS-VARX and WS- VARN?
how do you reference the fixed unblock file formats from cobol programs
u have passed sme charecters thru parm parameter in jcl. how do u code in cobol to recieve the values u gave in parm ?
What is the difference between CONTINUE & NEXT SENTENCE ?
77 a pic x(4) value '1234' -----> instead of this 'abcd' 77 b pic 9(4) value zeros. move a to b what is the answers for both cases? IS it possible? Give me elementary move rules briefly......
what modification we need to do in jcl if we use sort in cobol? I mean whether we need to include tempary file used for sorting in assign statement?
what is mainframe? what is the mainframe software ? what is use in s/w field?
What kind of error is trapped by on size error option?
how we can reverse the string in the cobol for example satheesh can be reveresed as hseehtas
In EBCDIC, how would the number 1234 be stored?
what is difference between the sysabend and userabend?
what is SYNCHRONIZATION?