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 / anjibabu
Deepak is partially right.
01 name1 pic a(20) value ' cobol language'.
01 name2 pic a(20).
01 name3 redefines name2 pic a(14) justified right.
PD
move name1 to name3.
display name2.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
) How do u handle errors in BMS macro?
Write the code to count the sum of n natural numbers.
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)?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
how do you reference the printer file formats from cobol programs
What is inspect in cobol ?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
What are different data types in cobol?
What are the pertinent COBOL
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
What is the difference between external and global variables in COBOL?
Write some characteristics of cobol as means of business language.
What are the cobol coding sheets?