BANKING CASE STUDY

About CICS and BMS - In this Mainframe Forum - You can post your queries on CICS

Moderators: DikDude, Natarajan, Moderator Group

Locked
svenkat
Member
Posts: 5
Joined: Tue Oct 04, 2011 11:37 am

BANKING CASE STUDY

Post by svenkat » Tue Oct 04, 2011 12:09 pm

i want to create a id which should be randomly created by the system and it should be alpha numeric...can you give the logic for this sir.....?
thank you in advance

DikDude
Moderator
Posts: 1001
Joined: Fri Jul 22, 2011 8:39 am
Location: usa

Post by DikDude » Tue Oct 04, 2011 11:58 pm

Why not simply implement a "next available"?

How might random have anything to do with creating a new id?
Have a good one

svenkat
Member
Posts: 5
Joined: Tue Oct 04, 2011 11:37 am

Post by svenkat » Thu Oct 06, 2011 7:57 pm

Thankyou for ur reply
Basically the idea is to create a id automatically ....in cics and the id must be displayed in the screen...plz...can u give the soln sir

DikDude
Moderator
Posts: 1001
Joined: Fri Jul 22, 2011 8:39 am
Location: usa

Post by DikDude » Thu Oct 06, 2011 8:15 pm

Basically the idea is to create a id automatically
Then you do not want/need random.

As i mentioned before, create a "next available" id (in some table or vsam file (preferable a database table)), and update this each time you need to generate a new id.
Last edited by DikDude on Thu Oct 06, 2011 10:43 pm, edited 1 time in total.
Have a good one

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Thu Oct 06, 2011 10:13 pm

how many char are in the id?
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

svenkat
Member
Posts: 5
Joined: Tue Oct 04, 2011 11:37 am

Post by svenkat » Fri Oct 07, 2011 8:15 am

There are 10 characters.....

User avatar
Krishna
Site Admin
Posts: 1052
Joined: Fri Jan 27, 2006 7:50 am

Post by Krishna » Sun Oct 23, 2011 5:40 pm

Are you usng DB2/VSAM?

Locked

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others