Home      Mainframe Forum      Mainfarme Tutorials      IBM Manuals      Mainframe Interview Questions      Mainframe Books      IT News     SiteMap     Downloads

 MAINFRAME - TIP OF THE DAY : programming pearls - Good judgement comes from experience, and experience comes from bad judgement.

 Web mainframegurukul.com

Programmers Voted for below topics.      Please Vote for good Posts. Votes Salutes
Author Message

Member

Joined: 03 Jul 2010
Posts: 1

 0 salutes

 Posted: Sat Jul 03, 2010 11:40 am    Post subject: Urgent : Need samp Cobol code for reading 9 digit SIN number Please send me sample code for the cobol called program. I need to validate the SIN number, to use modulus 10 method. SIN number - is 123 456 782 (9 bytes) Use the first 8 digits to validate the SIN number. the ninth digit is the check digit(in this case 2). Formula: First 8 digit of SIN number - 1 2 3 4 5 6 7 8 Multiply by second, fourth, six, and eighth digits by 2 --- 4 8 12 16 Add the resulting digits= (4+8+1+2+1+6 = +22) Add the first , third, fifth and seventh digits of the SIN number (1+3+5+7)= +16) Total 22 + 16 = 38 Subtract the total from the next highest number ending in zero (in this case 40) to obtain the check digit (40-3 = 2 generally , the result obtained is the check digit. however, if the result obtained is 10, the check digit is 0. Need to validate if the check digit is correct ; need to send 'Y' indicator and if the check digit is not correct; need to send 'N' indicator to calling program. please help me on this Thanks in advance. Dhana
 <-- Click on right mark icon. If this post answer your question.

Moderator

Joined: 02 Oct 2006
Posts: 975

 0 salutes

 Posted: Sat Jul 03, 2010 1:42 pm    Post subject: suggest you look at the COMPUTE Statement here is a discussion of how to use the compute statement in complicated equations I am assuming that you have the maths skills to implement you formula._________________Dick Brenholtz JCL, SQL and code in programs have an irritating habit of doing what you say, not what you meant.
 <-- Click on right mark icon. If this post answer your question.
 Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year Oldest FirstNewest First
 All times are GMT + 5 Hours Page 1 of 1

 Jump to: Select a forum This Website----------------Admin AnnouncementsModerators Only APPLICATION PROGRAMMING----------------COBOLJCLDFSORT , ICETOOL & UtilitiesCICSEASYTRIEVE DATA MANAGEMENT SYSTEMS----------------DB2 SQL - DB2 PROGRAMMINGVSAM - File systemIMS DBIDMS TOOLS----------------XPEDITERFILE-AIDCHANGE MANENDEVOR, COOLGEN , PANVALET and CA-7 OTHER LANGUAGES----------------TSO, CLIST & REXXPL/IASSEMBLERIMS/DC CAREERS / JOBS DISCUSSIONS / INTERVIEW QUESTIONS----------------JOB VACANCIESJOB DISCUSSIONABEND CODES / ERROR CODESDB2 INTERVIEW QUESTIONSCOBOL INTERVIEW QUESTIONSJCL INTERVIEW QUESTIONSVSAM INTERVIEW QUESTIONSCICS INTERVIEW QUESTIONSINTERVIEW QUESTIONS OTHER MAINFRAME SUBJECTS----------------XMLMQSERIES & WEBSPHEREOTHER SUBJECTS GENERAL FORUMS----------------EntertainmentGeneral DiscussionPersonality DevelopmentOff TopicsSuggestions & Feedback
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

  Topics   Replies   Author   Views   Last Post Related topics Search Batch file-aid help 14 frenchman 31122 Mon Feb 01, 2016 10:23 pmacademyindia4 File-Aid Help 3 Nicholas 21039 Mon Feb 01, 2016 10:22 pmacademyindia4 Hi plz help me out 7 Guest 20834 Mon Feb 01, 2016 10:14 pmacademyindia4 Need urgent HELP 4 Sulagna 12205 Mon Feb 01, 2016 1:39 amacademyindia4 executing java program thru JCL 6 Guest 24197 Tue Feb 12, 2013 1:56 pmAnuj Dhawan

 Cobol TutorialThis cobol tutorial covers most of the important topics like STRING, UNSTRING, COMP, COMP-3..... DB2 TutorialDB2 Tutorial focuses on DB2 COBOL Programming. Explains in simple language. Some Chapters are locked, Forum members have free access to these chapters CICS TutorialThis CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming... JCL TutorialThis is most popular JCL tutorial from mainframegurukul. It does contain important jcl .... SORT TutorialThis Tutorial covers all important aspects of DFSORT. Has more SORT examples INTERVIEW QuestionsThis page covers important interview questions Mainframe Jobs Mainframe Jobs posted by members of mainframegurukul forum FaceBook PageMainframeGurukul FaceBook Page LinkedIn PageMainframeGurkul Linkedin Page

 Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  DB2 INTERVIEW QUESTIONS ||  COBOL INTERVIEW QUESTIONS  ||  JCL INTERVIEW QUESTIONS ||  JCL2 INTERVIEW QUESTIONS ||  VSAM INTERVIEW QUESTIONS ||  CICS INTERVIEW QUESTIONS  ||  Online tutorials ||  Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  SiteMap  ||  Expeditor Tutorial  ||  FILE-AID Tutorial  ||  Changeman Tutorial  ||  COBOL   ||  DB2   ||  JCL  ||  CICS  ||  VSAM  ||  DB2 Interview Questions ( 110 )   || Simple JCL Tutorials  || JCL Tutorial from MainframeGurukul.com   || Simple JCL Tutorial - Chapter1 ;|| Mainframe Forum - Tutorials  || Mainframe Tutorials || Mainframe CICS tutorial|| Mainframe COBOL Tutorial Drona Educational Forums - Mainframe Cobol DB2 CICS Board Powered by phpBB
mainframetopic-5180.html