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
I have a File that has duplicate records. I need only those records that occur more than thrice.?
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
What is the difference between external and global variables in COBOL?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
What is the default value(s) for an initialize and what keyword allows for an override of the default?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
Can we change the password using ALTER? anyone tried and changed?
What are declaratives and what are their uses in cobol?
What are the rules of the move verb?
) how do u code after getting data?
What is amode(31)
When is inspect verb is used in cobol?
What is the Purpose of Pointer in the string?
How do you define a variable of comp-1 and comp-2?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?