The below is the declaration for a variable ws
01 ws pic 9(3).
if you want to insert space how will you do that.
in which level u should do it
Answer Posted / praveen bejjanki
The Question itself is not clear for me,
My understanding is to Insert space in the variable WS.
Then use move stmt as follows
Move space/spaces to WS.
Correct me if i'm wrong.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can we redefine the field of x(200) to less than 200?
What is the use of intialize verb?
What do you understand by psb and acb?
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
How do you differentiate between cobol and cobol-ii?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
Are you comfortable in cobol or jcl?
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
What is the utilization of copybook in cobol?
What the difference is between continue and next sentence?
Can we change the password using ALTER? anyone tried and changed?
How do you reference the following file formats from cobol programs?
Which is not true about evaluate statement