{"id":4188,"date":"2012-08-06T16:36:36","date_gmt":"2012-08-06T20:36:36","guid":{"rendered":"http:\/\/www.iri.com\/blog\/?p=4188"},"modified":"2017-11-07T10:11:20","modified_gmt":"2017-11-07T15:11:20","slug":"united-states-social-security-number","status":"publish","type":"post","link":"https:\/\/beta.iri.com\/blog\/test-data\/united-states-social-security-number\/","title":{"rendered":"Generating Test NID Data: United States Social Security Numbers"},"content":{"rendered":"<p>The Social Security Number (SSN) in the United States is similar to many other forms of national identification around the world, such that it is a number or set of characters that is designated to a citizen or person who has entered the country for an extended stay on a visa. The US SSN consists of nine numbers in the format:<\/p>\n<p>AAA-GG-SSSS<\/p>\n<p>The first three numbers are an area number that is generated based upon the state of birth. The next two numbers are called the &#8220;group&#8221; number and are generated as a more specific number for the state. The last four numbers are called &#8220;serial&#8221; numbers which further specify the region of birth, and range from 0001 and to 9999.<\/p>\n<p>IRI has created a new library function for\u00a0<a title=\"RowGen Test Data Generation Software\" href=\"http:\/\/www.iri.com\/products\/rowgen\" target=\"_blank\" rel=\"nofollow noopener\">RowGen<\/a>\u00a0users who wish to generate either valid or invalid SSNs. When creating a valid SSN that is formatted correctly, the user can call a special\u00a0<a title=\"RowGen Test Data Generation Software\" href=\"http:\/\/www.iri.com\/products\/rowgen\" target=\"_blank\" rel=\"nofollow noopener\">RowGen<\/a>\u00a0test data generation function, natid_gen_us in the output field. \u00a0It is used in the RowGen job script:<\/p>\n<pre>\/INFILE=RowGen_SSN_valid.placeholder.in\r\n   \/ALIAS=RGSSN\r\n   \/PROCESS=RANDOM\r\n   \/INCOLLECT=1   # Number of records to produce\r\n   \/FIELD=(NATID=natid_gen_us(\"FL\"), TYPE=ASCII, POSITION=1, SEPARATOR=\"\\n\") \r\n\/REPORT \r\n\/OUTFILE=stdout \r\n   \/PROCESS=RECORD \r\n   \/FIELD=(NATID, TYPE=ASCII, POSITION=1, SEPARATOR=\"\\t\")<\/pre>\n<p>The output from this routine is:<br \/>\n26X-56-3XXX<\/p>\n<p><span style=\"font-size: 13px; line-height: 19px;\">Note:<\/span><\/p>\n<ul>\n<li><span style=\"line-height: 13px;\">FieldName is the desired name for the field.<\/span><\/li>\n<li>State is the two-character abbreviation (e.g. FL for Florida) for the specific state the user would like to use to generate the SSN; these characters must be capitalized when entered.<\/li>\n<li>Leaving the State parameter out of the function call will randomly generate a US SSN<\/li>\n<li>The \/INCOLLECT value function determines the number of test records created.<\/li>\n<li>The 4 X&#8217;s above are actual numbers concealed to protect the particular person associated with the actual SSN generated.<\/li>\n<\/ul>\n<p>To generate an\u00a0<em>invalid\u00a0<\/em>US Social Security Number, so as to protect citizens from identity fraud, you can use special rules, or value ranges used in SSN-related advertising. A\u00a0<a title=\"RowGen Test Data Generation Software\" href=\"http:\/\/www.iri.com\/products\/rowgen\" target=\"_blank\" rel=\"nofollow noopener\">RowGen<\/a>\u00a0job script calling this function to create a properly formatted, but invalid US SSN might be:<\/p>\n<pre>\/INFILE=RowGen_SSN_invalid.placeholder.in\r\n   \/ALIAS=RGSSN\r\n   \/PROCESS=RANDOM\r\n   \/INCOLLECT=1   # Number of records to produce\r\n   \/FIELD=(NATID=natid_gen_invalid_us(), TYPE=ASCII, POSITION=1, SEPARATOR=\"\\n\")<\/pre>\n<p>The output for this routine is:<br \/>\n987-65-4325<\/p>\n<p><span style=\"font-size: 13px; line-height: 19px;\">Note:<\/span><\/p>\n<ul>\n<li><span style=\"line-height: 13px;\">FieldName is the desired name for the field.<\/span><\/li>\n<li>There are no parameters for this function because it randomly generates the numbers using advertising-related rules for creating US SSNs.<\/li>\n<\/ul>\n<p>Any number of records can be generated and sent to one or more output file or table targets, in one or more (custom) formats with or without other data fields. The other fields can either be randomly generated, or randomly selected from real data, to provide realism and privacy together. \u00a0If you are interested in using either of these functions in RowGen, please contact your IRI representative.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Social Security Number (SSN) in the United States is similar to many other forms of national identification around the world, such that it is a number or set of characters that is designated to a citizen or person who has entered the country for an extended stay on a visa. The US SSN consists<\/p>\n<div><a class=\"btn-filled btn\" href=\"https:\/\/beta.iri.com\/blog\/test-data\/united-states-social-security-number\/\" title=\"Generating Test NID Data: United States Social Security Numbers\">Read More<\/a><\/div>\n","protected":false},"author":20,"featured_media":11889,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[29],"tags":[314,341,360],"class_list":["post-4188","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-test-data","tag-generator","tag-goo","tag-ssn"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Generating Test NID Data: United States Social Security Numbers - IRI<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/beta.iri.com\/blog\/test-data\/united-states-social-security-number\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Generating Test NID Data: United States Social Security Numbers - IRI\" \/>\n<meta property=\"og:description\" content=\"The Social Security Number (SSN) in the United States is similar to many other forms of national identification around the world, such that it is a number or set of characters that is designated to a citizen or person who has entered the country for an extended stay on a visa. The US SSN consistsRead More\" \/>\n<meta property=\"og:url\" content=\"https:\/\/beta.iri.com\/blog\/test-data\/united-states-social-security-number\/\" \/>\n<meta property=\"og:site_name\" content=\"IRI\" \/>\n<meta property=\"article:published_time\" content=\"2012-08-06T20:36:36+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-11-07T15:11:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/beta.iri.com\/blog\/wp-content\/uploads\/2012\/08\/social-security-card.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1110\" \/>\n\t<meta property=\"og:image:height\" content=\"624\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Zachary McHenry\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Zachary McHenry\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/beta.iri.com\/blog\/test-data\/united-states-social-security-number\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/beta.iri.com\/blog\/test-data\/united-states-social-security-number\/\"},\"author\":{\"name\":\"Zachary McHenry\",\"@id\":\"https:\/\/beta.iri.com\/blog\/#\/schema\/person\/78eba25b0948cc80568f172c56e99745\"},\"headline\":\"Generating Test NID Data: United States Social Security Numbers\",\"datePublished\":\"2012-08-06T20:36:36+00:00\",\"dateModified\":\"2017-11-07T15:11:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/beta.iri.com\/blog\/test-data\/united-states-social-security-number\/\"},\"wordCount\":426,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/beta.iri.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/beta.iri.com\/blog\/test-data\/united-states-social-security-number\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/beta.iri.com\/blog\/wp-content\/uploads\/2012\/08\/social-security-card.jpg\",\"keywords\":[\"generator\",\"goo\",\"ssn\"],\"articleSection\":[\"Test Data\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/beta.iri.com\/blog\/test-data\/united-states-social-security-number\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/beta.iri.com\/blog\/test-data\/united-states-social-security-number\/\",\"url\":\"https:\/\/beta.iri.com\/blog\/test-data\/united-states-social-security-number\/\",\"name\":\"Generating Test NID Data: United States Social Security Numbers - IRI\",\"isPartOf\":{\"@id\":\"https:\/\/beta.iri.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/beta.iri.com\/blog\/test-data\/united-states-social-security-number\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/beta.iri.com\/blog\/test-data\/united-states-social-security-number\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/beta.iri.com\/blog\/wp-content\/uploads\/2012\/08\/social-security-card.jpg\",\"datePublished\":\"2012-08-06T20:36:36+00:00\",\"dateModified\":\"2017-11-07T15:11:20+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/beta.iri.com\/blog\/test-data\/united-states-social-security-number\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/beta.iri.com\/blog\/test-data\/united-states-social-security-number\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/beta.iri.com\/blog\/test-data\/united-states-social-security-number\/#primaryimage\",\"url\":\"https:\/\/beta.iri.com\/blog\/wp-content\/uploads\/2012\/08\/social-security-card.jpg\",\"contentUrl\":\"https:\/\/beta.iri.com\/blog\/wp-content\/uploads\/2012\/08\/social-security-card.jpg\",\"width\":1110,\"height\":624,\"caption\":\"social security card\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/beta.iri.com\/blog\/test-data\/united-states-social-security-number\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/beta.iri.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Generating Test NID Data: United States Social Security Numbers\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/beta.iri.com\/blog\/#website\",\"url\":\"https:\/\/beta.iri.com\/blog\/\",\"name\":\"IRI\",\"description\":\"Total Data Management Blog\",\"publisher\":{\"@id\":\"https:\/\/beta.iri.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/beta.iri.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/beta.iri.com\/blog\/#organization\",\"name\":\"IRI\",\"url\":\"https:\/\/beta.iri.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/beta.iri.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/beta.iri.com\/blog\/wp-content\/uploads\/2019\/02\/iri-logo-total-data-management-small-1.png\",\"contentUrl\":\"https:\/\/beta.iri.com\/blog\/wp-content\/uploads\/2019\/02\/iri-logo-total-data-management-small-1.png\",\"width\":750,\"height\":206,\"caption\":\"IRI\"},\"image\":{\"@id\":\"https:\/\/beta.iri.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/beta.iri.com\/blog\/#\/schema\/person\/78eba25b0948cc80568f172c56e99745\",\"name\":\"Zachary McHenry\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/beta.iri.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f783b98096dabe202c36c6ab81417f89?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f783b98096dabe202c36c6ab81417f89?s=96&d=blank&r=g\",\"caption\":\"Zachary McHenry\"},\"sameAs\":[\"http:\/\/www.iri.com\"],\"url\":\"https:\/\/beta.iri.com\/blog\/author\/zachm\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Generating Test NID Data: United States Social Security Numbers - IRI","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/beta.iri.com\/blog\/test-data\/united-states-social-security-number\/","og_locale":"en_US","og_type":"article","og_title":"Generating Test NID Data: United States Social Security Numbers - IRI","og_description":"The Social Security Number (SSN) in the United States is similar to many other forms of national identification around the world, such that it is a number or set of characters that is designated to a citizen or person who has entered the country for an extended stay on a visa. The US SSN consistsRead More","og_url":"https:\/\/beta.iri.com\/blog\/test-data\/united-states-social-security-number\/","og_site_name":"IRI","article_published_time":"2012-08-06T20:36:36+00:00","article_modified_time":"2017-11-07T15:11:20+00:00","og_image":[{"width":1110,"height":624,"url":"https:\/\/beta.iri.com\/blog\/wp-content\/uploads\/2012\/08\/social-security-card.jpg","type":"image\/jpeg"}],"author":"Zachary McHenry","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Zachary McHenry","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/beta.iri.com\/blog\/test-data\/united-states-social-security-number\/#article","isPartOf":{"@id":"https:\/\/beta.iri.com\/blog\/test-data\/united-states-social-security-number\/"},"author":{"name":"Zachary McHenry","@id":"https:\/\/beta.iri.com\/blog\/#\/schema\/person\/78eba25b0948cc80568f172c56e99745"},"headline":"Generating Test NID Data: United States Social Security Numbers","datePublished":"2012-08-06T20:36:36+00:00","dateModified":"2017-11-07T15:11:20+00:00","mainEntityOfPage":{"@id":"https:\/\/beta.iri.com\/blog\/test-data\/united-states-social-security-number\/"},"wordCount":426,"commentCount":0,"publisher":{"@id":"https:\/\/beta.iri.com\/blog\/#organization"},"image":{"@id":"https:\/\/beta.iri.com\/blog\/test-data\/united-states-social-security-number\/#primaryimage"},"thumbnailUrl":"https:\/\/beta.iri.com\/blog\/wp-content\/uploads\/2012\/08\/social-security-card.jpg","keywords":["generator","goo","ssn"],"articleSection":["Test Data"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/beta.iri.com\/blog\/test-data\/united-states-social-security-number\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/beta.iri.com\/blog\/test-data\/united-states-social-security-number\/","url":"https:\/\/beta.iri.com\/blog\/test-data\/united-states-social-security-number\/","name":"Generating Test NID Data: United States Social Security Numbers - IRI","isPartOf":{"@id":"https:\/\/beta.iri.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/beta.iri.com\/blog\/test-data\/united-states-social-security-number\/#primaryimage"},"image":{"@id":"https:\/\/beta.iri.com\/blog\/test-data\/united-states-social-security-number\/#primaryimage"},"thumbnailUrl":"https:\/\/beta.iri.com\/blog\/wp-content\/uploads\/2012\/08\/social-security-card.jpg","datePublished":"2012-08-06T20:36:36+00:00","dateModified":"2017-11-07T15:11:20+00:00","breadcrumb":{"@id":"https:\/\/beta.iri.com\/blog\/test-data\/united-states-social-security-number\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/beta.iri.com\/blog\/test-data\/united-states-social-security-number\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/beta.iri.com\/blog\/test-data\/united-states-social-security-number\/#primaryimage","url":"https:\/\/beta.iri.com\/blog\/wp-content\/uploads\/2012\/08\/social-security-card.jpg","contentUrl":"https:\/\/beta.iri.com\/blog\/wp-content\/uploads\/2012\/08\/social-security-card.jpg","width":1110,"height":624,"caption":"social security card"},{"@type":"BreadcrumbList","@id":"https:\/\/beta.iri.com\/blog\/test-data\/united-states-social-security-number\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/beta.iri.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Generating Test NID Data: United States Social Security Numbers"}]},{"@type":"WebSite","@id":"https:\/\/beta.iri.com\/blog\/#website","url":"https:\/\/beta.iri.com\/blog\/","name":"IRI","description":"Total Data Management Blog","publisher":{"@id":"https:\/\/beta.iri.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/beta.iri.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/beta.iri.com\/blog\/#organization","name":"IRI","url":"https:\/\/beta.iri.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/beta.iri.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/beta.iri.com\/blog\/wp-content\/uploads\/2019\/02\/iri-logo-total-data-management-small-1.png","contentUrl":"https:\/\/beta.iri.com\/blog\/wp-content\/uploads\/2019\/02\/iri-logo-total-data-management-small-1.png","width":750,"height":206,"caption":"IRI"},"image":{"@id":"https:\/\/beta.iri.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/beta.iri.com\/blog\/#\/schema\/person\/78eba25b0948cc80568f172c56e99745","name":"Zachary McHenry","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/beta.iri.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/f783b98096dabe202c36c6ab81417f89?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f783b98096dabe202c36c6ab81417f89?s=96&d=blank&r=g","caption":"Zachary McHenry"},"sameAs":["http:\/\/www.iri.com"],"url":"https:\/\/beta.iri.com\/blog\/author\/zachm\/"}]}},"jetpack_featured_media_url":"https:\/\/beta.iri.com\/blog\/wp-content\/uploads\/2012\/08\/social-security-card.jpg","_links":{"self":[{"href":"https:\/\/beta.iri.com\/blog\/wp-json\/wp\/v2\/posts\/4188"}],"collection":[{"href":"https:\/\/beta.iri.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/beta.iri.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/beta.iri.com\/blog\/wp-json\/wp\/v2\/users\/20"}],"replies":[{"embeddable":true,"href":"https:\/\/beta.iri.com\/blog\/wp-json\/wp\/v2\/comments?post=4188"}],"version-history":[{"count":23,"href":"https:\/\/beta.iri.com\/blog\/wp-json\/wp\/v2\/posts\/4188\/revisions"}],"predecessor-version":[{"id":11890,"href":"https:\/\/beta.iri.com\/blog\/wp-json\/wp\/v2\/posts\/4188\/revisions\/11890"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/beta.iri.com\/blog\/wp-json\/wp\/v2\/media\/11889"}],"wp:attachment":[{"href":"https:\/\/beta.iri.com\/blog\/wp-json\/wp\/v2\/media?parent=4188"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/beta.iri.com\/blog\/wp-json\/wp\/v2\/categories?post=4188"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/beta.iri.com\/blog\/wp-json\/wp\/v2\/tags?post=4188"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}