Can we MOVE X(9) to 9(9) OR 9(9) to X(9)? If yes what are
the ways for doing this?
Answer Posted / chakri
kavya is right. We can move numeric to alphanumeric and
vice versa. error will be thrown only when we do arithmetic
operations when we move alpha numeric to numeric data
items .
| Is This Answer Correct ? | 8 Yes | 3 No |
Post New Answer View All Answers
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
Explain how you can characterize tables in cobol?
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
Why occurs cannot be used in 01 level in COBOL?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
What are the different open modes available in cobol?
how do you reference the printer file formats from cobol programs
What kind of error is trapped by on size error option?
Write a program that uses move corresponding.
What is comp-1 and comp-2?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need