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 difference between static and dynamic call in cobol?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
Which mode is used to operate the sequential file?
For rewrite, why is it mandatory that file needs to be opened?
What is the problem of ordered sequential files access?
Write a program that uses move corresponding.
What are all the divisions of a COBOL program?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
What is the difference between binary search and sequential search?
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
How to use the same COBOL program in Batch and CICS on lines? explain with an example
What is the default value(s) for an initialize and what keyword allows for an override of the default?
Describe the cobol database components?
If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly