IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

5 digit alpha numeric code generating logic - Unique request


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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
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
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: 1436
Location: Bangalore,India

PostPosted: Wed Jan 02, 2008 1:51 pm
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Jan 02, 2008 1:52 pm
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Jan 02, 2008 1:57 pm
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
Reply with quote

Hi Numr,


please go through the below the link for logic and code

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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
Search our Forums:

Back to Top