Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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

Senior Member


Joined: 14 Mar 2007
Posts: 10479
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

Senior Member


Joined: 14 Mar 2007
Posts: 10479
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 What will happen if we dont code STOP... Poha Eater COBOL Programming 4 Mon Jun 04, 2018 5:27 pm
No new posts JCL to set Return code when Time Out ... vinu78 JCL & VSAM 6 Wed May 30, 2018 11:27 am
This topic is locked: you cannot edit posts or make replies. Rexx code to find greater then symobl... Bharath Vikraman CLIST & REXX 8 Tue May 29, 2018 9:40 am
No new posts RESP2 code -502 pshongal CICS 6 Mon May 28, 2018 10:58 am
No new posts Code Coverage and static analysis too... Aditya.Srivastava PL/I & Assembler 2 Fri May 25, 2018 12:48 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us