file status 00 is checked after opening the file or reading
the file
Answers were Sorted based on User's Feedback
Answer / dilli
it can be used for both the situation for successful opening
and reading the file
| Is This Answer Correct ? | 13 Yes | 1 No |
Answer / vamsi
file status codes:
41: already opened trying to open again
02:duplicate key
00:opened sucessfully
21:duplicate record
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / srinath
File status is checked at both times i.e while opening as
well as while reading the file also.
| Is This Answer Correct ? | 3 Yes | 3 No |
Answer / neha
no it is used for opening the file. for reading file 01 is
code generally.from successful run the code
| Is This Answer Correct ? | 0 Yes | 1 No |
I hv ten records in ps file and i hv say some 15 records in vsam file .i hv empno and age in ps file n empno,empname,dept n desig in vsam file. i hv 2 read the ps file n check wid matching empno in vsam file and then insert all fields from ps and vsam into db2 table....plz help in writin the procedure division
how to check whether the open command of a sequential file is successful? or not?
what is the diff b/w select stsmt and cursor ?
How do u debug a S0C7 abend? (aswered till we get the field which caused that) After knowing the field which caused that how do u know the record which caused that if it is in production env? (dumb) Ok let us assume that we got to know that 100th record caused that and I wanted to skip only 100th record from the file and process from 101th. How to do that in JCL using SORT? (tried with STOPAFT but ended up dumb when he said smthing else is ther)
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.
how do you reference the variable block file formats from cobol programs
input:- 12233344445555566666... output:- 1=1,2=4,3=9... Here firstno i.e 1 should be displayed and after that the alikeno.s should be added n displayed.i.e 2+2=4 like tat it goeson.
I have sequential file recl 1000 i want to add another 15 bytes to it. The record length should not change..How?
what do you mean by copybook? and what is the difference between the copybook which we are using in working storage and procedure division.
can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech
)what is retrieve?
01 a pic s9(5) value -12345, if we disply a , the sign will overpunched with last digit but i need to get the miuns sign in the result?