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 length is cobol?
Describe the cobol database components?
What are various search techniques in cobol? Explain.
example for sub strings ? and refernce modifications whit output pls
Explain what you understand by passing by value.
What is the default value(s) for an initialize and what keyword allows for an override of the default?
In COBOL programming, what is PERFORM? What is VARYING?
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
What is the problem of ordered sequential files access?
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
What rules are to be followed while using the corresponding options?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
What is the difference between PIC 9.99 and PIC9v99?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
how to refer the data field?