How can i change the below code in SQL to cobol/400?
EXEC SQL SELECT COUNT(*) INTO : WS-COUNT FROM Db file
WHERE Field 1 = : WS-VAR AND
Field 2 = : WS-USERID
END-EXEC
Answer Posted / mithun paul
1. Start the DB file with field1 and field2.
2. Read the DB file next record and increase the counter
value.
3. End the process, when end of file reached.
Mithun Paul
KMG Infotech Ltd., Kolkata
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What is sort? And its syntax?
Explain the difference between section, paragraph and sentences?
Define sort?
Explain the input procedure and output procedure?
Explain the syntax of sort?
What is perform?
seqence numbers in cobol
Define redefine and its syntax?
What are the types of perform?
How to detect record is locked in cobol/400? What is the solution for that?
Explain what all the conditiones required for using open opcode on a file?
What is comp?
How to update data area in cobol 400 program?
Define redefine?
What is the syntax of redefine?