mainframe - I m facing issue in Coding this rotation part in cics -
how can rotate customer number values in cics? eg. if customer number c52063 how can onto next value ie, c52064(say) in cics?
this very broad question, you're asking persistence mechanisms available in cics.
please understand there big difference between...
- what technically possible
- what allowed in shop
- what provide robust , maintainable solution given requirements
these 3 different things. of answering questions here on stackoverflow have life experiences make reticent answering questions regarding technically possible absent mention of allowed in shop or actual business requirement being solved.
mainframes have been around on half century, , many shops have standard solutions technical problems. solution "don't that, , here's we instead." working against recommendations of technical staff, or shop standards, career limiting.
a couple of options, not intended exhaustive list...
select,updatevalue in dbms (such db2). must codeselectsqlfor update.read,rewritevalue in vsam file. must codereadupdateoption.
in either case holding lock on resource until hit either explicit (exec cics syncpoint) or implicit (end of transaction) syncpoint or rollback (exec cics syncpoint rollback or abend condition). holding such lock means other instances of transaction wait until syncpoint or rollback has occurred.
if know for certain your application limited single cics region... other options include having transaction initiated part of region initialization processing obtain , populate shared resource such temporary storage queue name known application last known customer number. initialization transaction have obtain highest used customer number somewhere, dbms or vsam file. applications have coded enq , deq access temporary storage queue. without using temporary storage queue shared memory , storing address of memory in cics cwa region. again, enq , deq logic have coded in applications.
you use named counter defined cics systems programmer. read , understand recovery requirements application documented in ibm knowledge center.
again, not exhaustive list, give overview of of options available. talk technical staff, have either standard solution employed shop or preference based on experience , requirements.
Comments
Post a Comment