Originally posted by samamahesh
How to get the NEXTVAL of a Sequence in COBOL program. Please give me sample code.
Hi Thanks for your reply,
Basically i am looking at sample code to get the sequnce number for example an account number ( similar to Oracle Sequnce number).
I am working on Mainframe with DB2 as database, Cobol is programming language.
Is there any function in DB2 which gives the same results of Oracle Sequnce Number.
If it is, please let me know, and please provide sample code.