how to display comp3 variables reply soon ?
Answers were Sorted based on User's Feedback
Answer / fjord
01 ws-a pic s9(5) comp-3 value 12345.
01 ws-b pic s9(5).
Procedure division.
move ws-a to ws-b
display ws-b upon terminal.
| Is This Answer Correct ? | 16 Yes | 0 No |
Answer / chandra
SELECT ACCT-FILE ASSIGN TO UT01.
01 A pic s9(5)comp-3 value 12345.
01 ACC-REC.
02 B pic s9(5)comp-3.
02 FILLER X(77).
PD.
OPEN ACCT-FILE.
MOVE A TO B.
WRITE ACC-REC.
BROWSE THE FILE AND WRITE HEX ON IN THE COMMAND PROMPT THEN
PRESS ENTER....IT WILL SHOW U THE COMP-3 VALUE.....
| Is This Answer Correct ? | 7 Yes | 4 No |
Answer / lovely.surendra
just use a another ws-variable and then move the value of
COMP variable into it,
now u can do any activitity with this ws-variable.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / sachin
you can also do this using the jcl sort
inrec = (1,4,pd,m4)
| Is This Answer Correct ? | 0 Yes | 1 No |
can u plz expain me how to declare dynamic array? what is the meaning of depending on clause in dynamic array?
what happens if we wont give timestamp in precompilation process ?
I have 2 dimensional array with having 100 elements. So how to find the 11th item in an array?
How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length
how do you reference the rrds file formats from cobol programs
which is better comp or comp-3 in terms of memory utilization?
can anyone explain me the concept of COMP-4 PLEASE??
where will u code file status ?
how to transfer the file from pc to mainframe??
consider the following two IF statements: IF X AND NOT Y MOVE A TO B IF Z=1 OR 9 MOVE A TO B select one of the following data divusion entries which gives identical results for both the above IF statements a.01 Z PIC 9 88 X VALUE 1.9 88 Y VALUE 0.2 THRU 8 b.01 Z PIC 9 88 X VALUE 0.2 THRU 8 Y VALUE 1.9 c.01 Z PIC 9 88 X VALUE 1.9 88 NOT-Y VALUE 0.2 THRU 1.9 d.none of yhe above
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
which certifications r 4 cobol,jcl,db2,cics what is format of xam n what is importance of these certifications... plz post answer only if u r sure... thanks