Hi All,
Can anyone tell me how we can MOVE value of a X(19)
variable to a S9(17) COMP-3 variable?
Answer with an Example will be of great help.
Answer Posted / vamsi
First of all s9(17) comp-3 will occupy 9 bytes and X(19) has
19 bytes of memory.
When we move the text value to an comp-3 field, we will get
Soc7 error. We cannot move alpha values to numeric fields.
If the X(17) contain numeric values then we can move this
field to s(17) comp-3 field and we can move only 9 bytes
other data will be trucated.
| Is This Answer Correct ? | 4 Yes | 8 No |
Post New Answer View All Answers
How do you reference the fixed block file formats from cobol programs
What is the utilization of copybook in cobol?
example for sub strings ? and refernce modifications whit output pls
) How do u handle errors in BMS macro
) How do u handle errors in BMS macro?
) how do u code after getting data?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
Differentiate between structured cobol programming and object-oriented cobol programming.
) what is the difference between AID and HANDLE AID?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
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.
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?