01 a pic 9(6) value is 123456
01 b pic 9(3)
move a to b
wht will be the value ?
Answer Posted / nilesh
456 would be the value in b.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks
Can you please let me know the centre name of INS certification in Kolkata.
What are 77 levels used for?
Whats the difference between search & search ALL?
For rewrite, why is it mandatory that file needs to be opened?
how do you reference the variable block file formats from cobol programs
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
How do you define a variable of comp-1 and comp-2?
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?
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 ......
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
How are the next sentence and continue different from each other?
How to use the same COBOL program in Batch and CICS on lines? explain with an example
how do you define single dimensional array and multidimensional array in your cobol?