Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

5 digit alpha numeric code generating logic - Unique request

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
numr

New User


Joined: 02 Apr 2005
Posts: 4

PostPosted: Wed Jan 02, 2008 11:02 am    Post subject: 5 digit alpha numeric code generating logic - Unique request
Reply with quote

Please help to provide

5 digit alpha numeric code to be generated. It should be unique.
We will be doing the above code in Cobol.

tHANKS
Back to top
View user's profile Send private message

rajaherein

New User


Joined: 11 Jan 2007
Posts: 23
Location: chennai

PostPosted: Wed Jan 02, 2008 1:26 pm    Post subject: Reply to: 5 digit alpha numeric code generating logic - Uniq
Reply with quote

Hi,

Please post your requirements clearly. We need more info to help you.
Back to top
View user's profile Send private message
numr

New User


Joined: 02 Apr 2005
Posts: 4

PostPosted: Wed Jan 02, 2008 1:42 pm    Post subject: Reply to: 5 digit alpha numeric code generating logic - Uniq
Reply with quote

Hi

We need to generate a security number for all records and the security number should be unique.

Eg: Security 1 -- > AB001
Security 2 -- > CF345

ETC..

Need a unique number and the number should not go out of series for minimum 10 years..

Please help to provide any solution.

Eg: A0001 , A0002 , A0003 AB001, AB002
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Wed Jan 02, 2008 1:51 pm    Post subject:
Reply with quote

numr,

Why dont you generate sequence number (like 00000,00001 etc..). Once you reach '99999' generate alphanumeric numbers.

You need to put your effort for this and dont expect we will do 'your work'. If you face any problem, we are here to help you.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Wed Jan 02, 2008 1:52 pm    Post subject: Reply to: 5 digit alpha numeric code generating logic - Uniq
Reply with quote

is this some kind of homework...

I would say that relying on forum replies for security related question is not a company wise approach..

even ATM application rely on a 5 all numeric digit and do not require uniqueness..

Review Your security needs,
use a longer string,
use some kind of ashing technique
review the uniqueness requirement

have somebody review/audit Your organization security
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Wed Jan 02, 2008 1:57 pm    Post subject: Reply to: 5 digit alpha numeric code generating logic - Uniq
Reply with quote

Quote:
use some kind of ashing technique


sorry for replying to my own post, I just found the humor of a typo
ashing the data will certainly provide TOP security

c ashing hashing

thank You
Back to top
View user's profile Send private message
sxc

New User


Joined: 05 Oct 2007
Posts: 1
Location: Bangalore

PostPosted: Thu Jan 10, 2008 11:36 am    Post subject: Reply to: 5 digit alpha numeric code generating logic - Uniq
Reply with quote

Hi Numr,


please go through the below the link for logic and code

http://ibmmainframes.com/about12680.html



Thanks
SXC.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Validate if a Value from the file is ... balacsv2 COBOL Programming 8 Mon Jun 19, 2017 11:52 pm
No new posts DB2 Program abending without giving a... rahulgarg14 DB2 7 Mon May 29, 2017 8:10 pm
No new posts Job failing with USER = 4093 REASON C... Pradeepa S ABENDS & Debugging 1 Wed May 17, 2017 3:35 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us