How to delete a front spaces in a data-name/variable in
cobol
Example:-
01 data-name-1 PIC x(20) value " cobol language".
01 data-name-2 PIC x(20).
MOVE data-name-1 to data-name-2.
would like the value of data-name-2 is "cobol language".
Answer Posted / deepak dada
01 data-name-1 pic value " cobol language" justified
right.
01 data-nane-2 pic(20).
01 data-name-3 redifines data-name-2 pic x(14).
move data-name-1 to data-name-3.
display data-name-3.
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
How to use the same COBOL program in Batch and CICS on lines? explain with an example
What is rmode(24)
How are the next sentence and continue different from each other?
What are different data types in cobol?
What is link edit in cobol?
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
How do you reference the following file formats from cobol programs?
What is the local-storage section?
What are the access modes of START statement?
Why did you choose to work with ibm mainframe cobol programming?
Have you used comp and comp-3 in your project? And how?
How can you get the ksds file records into your cobol program?
Can we change the password using ALTER? anyone tried and changed?