{"id":229859,"date":"2024-06-08T12:05:57","date_gmt":"2024-06-08T12:05:57","guid":{"rendered":"https:\/\/namso-gen.co\/blog\/?p=229859"},"modified":"2024-06-08T12:05:57","modified_gmt":"2024-06-08T12:05:57","slug":"how-to-assign-value-in-cobol","status":"publish","type":"post","link":"https:\/\/namso-gen.co\/blog\/how-to-assign-value-in-cobol\/","title":{"rendered":"How to assign value in COBOL?"},"content":{"rendered":"<p>COBOL, short for Common Business-Oriented Language, is a programming language specifically designed for business applications. One of the fundamental tasks in COBOL programming is assigning values to variables. In this article, we will explore different ways to assign values in COBOL and discuss the significance of this process.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_62 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title \" >Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/namso-gen.co\/blog\/how-to-assign-value-in-cobol\/#Assigning_Value_in_COBOL\" title=\"Assigning Value in COBOL\">Assigning Value in COBOL<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/namso-gen.co\/blog\/how-to-assign-value-in-cobol\/#1_Assigning_a_Literal_Value\" title=\"1. Assigning a Literal Value\">1. Assigning a Literal Value<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/namso-gen.co\/blog\/how-to-assign-value-in-cobol\/#2_Assigning_a_Variable_Value\" title=\"2. Assigning a Variable Value\">2. Assigning a Variable Value<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/namso-gen.co\/blog\/how-to-assign-value-in-cobol\/#3_Assigning_an_Arithmetic_Expression\" title=\"3. Assigning an Arithmetic Expression\">3. Assigning an Arithmetic Expression<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/namso-gen.co\/blog\/how-to-assign-value-in-cobol\/#4_Assigning_the_Current_Date_or_Time\" title=\"4. Assigning the Current Date or Time\">4. Assigning the Current Date or Time<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/namso-gen.co\/blog\/how-to-assign-value-in-cobol\/#5_Assigning_a_Null_Value\" title=\"5. Assigning a Null Value\">5. Assigning a Null Value<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/namso-gen.co\/blog\/how-to-assign-value-in-cobol\/#6_Assigning_Values_to_Arrays\" title=\"6. Assigning Values to Arrays\">6. Assigning Values to Arrays<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/namso-gen.co\/blog\/how-to-assign-value-in-cobol\/#7_Assigning_Values_Conditionally\" title=\"7. Assigning Values Conditionally\">7. Assigning Values Conditionally<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/namso-gen.co\/blog\/how-to-assign-value-in-cobol\/#Frequently_Asked_Questions_FAQs\" title=\"Frequently Asked Questions (FAQs)\">Frequently Asked Questions (FAQs)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/namso-gen.co\/blog\/how-to-assign-value-in-cobol\/#1_Can_I_assign_values_from_one_record_to_another_in_COBOL\" title=\"1. Can I assign values from one record to another in COBOL?\">1. Can I assign values from one record to another in COBOL?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/namso-gen.co\/blog\/how-to-assign-value-in-cobol\/#2_How_do_I_assign_a_value_to_a_group_item_in_COBOL\" title=\"2. How do I assign a value to a group item in COBOL?\">2. How do I assign a value to a group item in COBOL?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/namso-gen.co\/blog\/how-to-assign-value-in-cobol\/#3_Can_I_assign_values_to_multiple_variables_in_a_single_MOVE_statement\" title=\"3. Can I assign values to multiple variables in a single MOVE statement?\">3. Can I assign values to multiple variables in a single MOVE statement?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/namso-gen.co\/blog\/how-to-assign-value-in-cobol\/#4_Is_there_a_limit_on_the_number_of_values_I_can_assign_in_a_single_MOVE_statement\" title=\"4. Is there a limit on the number of values I can assign in a single MOVE statement?\">4. Is there a limit on the number of values I can assign in a single MOVE statement?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/namso-gen.co\/blog\/how-to-assign-value-in-cobol\/#5_What_happens_if_I_try_to_assign_an_incompatible_value_to_a_variable\" title=\"5. What happens if I try to assign an incompatible value to a variable?\">5. What happens if I try to assign an incompatible value to a variable?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/namso-gen.co\/blog\/how-to-assign-value-in-cobol\/#6_Can_I_combine_arithmetic_expressions_and_literals_in_a_single_MOVE_statement\" title=\"6. Can I combine arithmetic expressions and literals in a single MOVE statement?\">6. Can I combine arithmetic expressions and literals in a single MOVE statement?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/namso-gen.co\/blog\/how-to-assign-value-in-cobol\/#7_How_can_I_assign_a_value_to_a_variable_from_user_input_in_COBOL\" title=\"7. How can I assign a value to a variable from user input in COBOL?\">7. How can I assign a value to a variable from user input in COBOL?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/namso-gen.co\/blog\/how-to-assign-value-in-cobol\/#8_Can_I_assign_values_to_variables_using_a_loop_in_COBOL\" title=\"8. Can I assign values to variables using a loop in COBOL?\">8. Can I assign values to variables using a loop in COBOL?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/namso-gen.co\/blog\/how-to-assign-value-in-cobol\/#9_Can_I_assign_the_value_of_a_file_record_to_a_variable\" title=\"9. Can I assign the value of a file record to a variable?\">9. Can I assign the value of a file record to a variable?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/namso-gen.co\/blog\/how-to-assign-value-in-cobol\/#10_What_happens_if_I_do_not_assign_a_value_to_a_variable\" title=\"10. What happens if I do not assign a value to a variable?\">10. What happens if I do not assign a value to a variable?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-20\" href=\"https:\/\/namso-gen.co\/blog\/how-to-assign-value-in-cobol\/#11_Can_I_assign_a_value_conditionally_based_on_the_length_of_a_string\" title=\"11. Can I assign a value conditionally based on the length of a string?\">11. Can I assign a value conditionally based on the length of a string?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-21\" href=\"https:\/\/namso-gen.co\/blog\/how-to-assign-value-in-cobol\/#12_How_do_I_assign_values_to_a_table_in_COBOL\" title=\"12. How do I assign values to a table in COBOL?\">12. How do I assign values to a table in COBOL?<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Assigning_Value_in_COBOL\"><\/span>Assigning Value in COBOL<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Assigning a value to a variable in COBOL is a straightforward process that involves the use of the &#8220;MOVE&#8221; statement. The MOVE statement allows you to assign a value to a data item, which could be a variable, literal, or an expression. In its simplest form, the syntax of the MOVE statement looks like this:<\/p>\n<p>&#8220;`<br \/>\nMOVE value TO target<br \/>\n&#8220;`<\/p>\n<p>In this statement, &#8220;value&#8221; represents the data you want to assign or move, while &#8220;target&#8221; is the data item receiving the assigned value. Let&#8217;s take a closer look at the different ways you can assign values in COBOL:<\/p>\n<h3><span class=\"ez-toc-section\" id=\"1_Assigning_a_Literal_Value\"><\/span>1. Assigning a Literal Value<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nTo assign a literal value to a variable, you can simply write the value directly in the MOVE statement. For example:<br \/>\n&#8220;`<br \/>\nMOVE 10 TO num<br \/>\n&#8220;`<br \/>\nThis statement assigns the literal value of 10 to the variable &#8220;num&#8221;.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"2_Assigning_a_Variable_Value\"><\/span>2. Assigning a Variable Value<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYou can assign the value of one variable to another using the MOVE statement. For instance:<br \/>\n&#8220;`<br \/>\nMOVE counter TO temp<br \/>\n&#8220;`<br \/>\nThis statement copies the value of the variable &#8220;counter&#8221; into the variable &#8220;temp&#8221;. <\/p>\n<h3><span class=\"ez-toc-section\" id=\"3_Assigning_an_Arithmetic_Expression\"><\/span>3. Assigning an Arithmetic Expression<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nCOBOL allows you to perform arithmetic operations while assigning values. Here is an example:<br \/>\n&#8220;`<br \/>\nMOVE num1 + num2 TO result<br \/>\n&#8220;`<br \/>\nThis statement adds the values of &#8220;num1&#8221; and &#8220;num2&#8221; together and assigns the result to the variable &#8220;result&#8221;.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"4_Assigning_the_Current_Date_or_Time\"><\/span>4. Assigning the Current Date or Time<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nCOBOL provides special functions to assign the current date and time values. These functions are often used in applications that require timestamping or time-sensitive operations. For example:<br \/>\n&#8220;`<br \/>\nMOVE FUNCTION CURRENT-DATE TO date-var<br \/>\n&#8220;`<br \/>\nThis statement assigns the current date to the variable &#8220;date-var&#8221;.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"5_Assigning_a_Null_Value\"><\/span>5. Assigning a Null Value<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nIn COBOL, you can assign a null value to a data item using the &#8220;NULL&#8221; keyword. This is useful when you want to represent the absence of a value. For instance:<br \/>\n&#8220;`<br \/>\nMOVE NULL TO string-var<br \/>\n&#8220;`<br \/>\nThis statement assigns a null value to the variable &#8220;string-var&#8221;.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"6_Assigning_Values_to_Arrays\"><\/span>6. Assigning Values to Arrays<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nCOBOL supports arrays, and you can assign values to array elements individually or using a subscript. Here is an example:<br \/>\n&#8220;`<br \/>\nMOVE 100 TO array(3)<br \/>\n&#8220;`<br \/>\nThis statement assigns the value of 100 to the third element of the array.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"7_Assigning_Values_Conditionally\"><\/span>7. Assigning Values Conditionally<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nCOBOL provides conditional statements such as IF-ELSE to execute different sets of instructions based on certain conditions. You can assign values conditionally using these statements. For example:<br \/>\n&#8220;`<br \/>\nIF flag = &#8216;Y&#8217;<br \/>\n   MOVE 1 TO indicator<br \/>\nELSE<br \/>\n   MOVE 0 TO indicator<br \/>\nEND-IF<br \/>\n&#8220;`<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Frequently_Asked_Questions_FAQs\"><\/span>Frequently Asked Questions (FAQs)<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h3><span class=\"ez-toc-section\" id=\"1_Can_I_assign_values_from_one_record_to_another_in_COBOL\"><\/span>1. Can I assign values from one record to another in COBOL?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYes, you can assign values from one record to another by specifying the record names in the MOVE statement.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"2_How_do_I_assign_a_value_to_a_group_item_in_COBOL\"><\/span>2. How do I assign a value to a group item in COBOL?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nTo assign a value to a group item, you can use the MOVE statement followed by the hierarchical name of the item.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"3_Can_I_assign_values_to_multiple_variables_in_a_single_MOVE_statement\"><\/span>3. Can I assign values to multiple variables in a single MOVE statement?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYes, you can assign values to multiple variables by separating the assignments with commas.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"4_Is_there_a_limit_on_the_number_of_values_I_can_assign_in_a_single_MOVE_statement\"><\/span>4. Is there a limit on the number of values I can assign in a single MOVE statement?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nNo, there is no specific limit on the number of assignments in a MOVE statement. However, it is recommended to keep the statement readable and maintainable.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"5_What_happens_if_I_try_to_assign_an_incompatible_value_to_a_variable\"><\/span>5. What happens if I try to assign an incompatible value to a variable?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nIf you attempt to assign an incompatible value to a variable, it may result in a runtime error or unexpected behavior. It is crucial to ensure compatibility between the data types.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"6_Can_I_combine_arithmetic_expressions_and_literals_in_a_single_MOVE_statement\"><\/span>6. Can I combine arithmetic expressions and literals in a single MOVE statement?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYes, you can mix arithmetic expressions, literals, and variable names in a MOVE statement to assign complex values to variables.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"7_How_can_I_assign_a_value_to_a_variable_from_user_input_in_COBOL\"><\/span>7. How can I assign a value to a variable from user input in COBOL?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nTo assign a value from user input, you can use the ACCEPT statement to read the value entered by the user into a variable.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"8_Can_I_assign_values_to_variables_using_a_loop_in_COBOL\"><\/span>8. Can I assign values to variables using a loop in COBOL?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYes, you can use looping constructs like PERFORM to iterate through a set of values and assign them to variables.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"9_Can_I_assign_the_value_of_a_file_record_to_a_variable\"><\/span>9. Can I assign the value of a file record to a variable?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYes, you can assign the value of a file record to a variable by reading the record using INPUT-OUTPUT procedures and then using the MOVE statement.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"10_What_happens_if_I_do_not_assign_a_value_to_a_variable\"><\/span>10. What happens if I do not assign a value to a variable?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nIf you do not assign a value explicitly, COBOL will initialize the variable to its default value, which depends on its data type.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"11_Can_I_assign_a_value_conditionally_based_on_the_length_of_a_string\"><\/span>11. Can I assign a value conditionally based on the length of a string?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYes, you can use conditionals like IF statement and evaluate the length of a string to assign values conditionally.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"12_How_do_I_assign_values_to_a_table_in_COBOL\"><\/span>12. How do I assign values to a table in COBOL?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYou can assign values to a table by specifying the table name, index, and the value to be assigned in the MOVE statement.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>COBOL, short for Common Business-Oriented Language, is a programming language specifically designed for business applications. One of the fundamental tasks in COBOL programming is assigning values to variables. In this article, we will explore different ways to assign values in COBOL and discuss the significance of this process. Assigning Value in COBOL Assigning a value &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to assign value in COBOL?\" class=\"read-more button\" href=\"https:\/\/namso-gen.co\/blog\/how-to-assign-value-in-cobol\/#more-229859\">Read more<span class=\"screen-reader-text\">How to assign value in COBOL?<\/span><\/a><\/p>\n","protected":false},"author":57,"featured_media":107420,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[86279],"tags":[],"class_list":["post-229859","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-learn","no-featured-image-padding"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to assign value in COBOL?<\/title>\n<meta name=\"description\" content=\"COBOL, short for Common Business-Oriented Language, is a programming language specifically designed for business applications. One of the fundamental\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/namso-gen.co\/blog\/how-to-assign-value-in-cobol\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to assign value in COBOL?\" \/>\n<meta property=\"og:description\" content=\"COBOL, short for Common Business-Oriented Language, is a programming language specifically designed for business applications. One of the fundamental\" \/>\n<meta property=\"og:url\" content=\"https:\/\/namso-gen.co\/blog\/how-to-assign-value-in-cobol\/\" \/>\n<meta property=\"og:site_name\" content=\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/synchronyfinancial\" \/>\n<meta property=\"article:published_time\" content=\"2024-06-08T12:05:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2024\/03\/faq.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Casey Mayer\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@synchrony\" \/>\n<meta name=\"twitter:site\" content=\"@synchrony\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Casey Mayer\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-assign-value-in-cobol\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-assign-value-in-cobol\/\"},\"author\":{\"name\":\"Casey Mayer\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/89e431077ef417dfaa131f435124f18f\"},\"headline\":\"How to assign value in COBOL?\",\"datePublished\":\"2024-06-08T12:05:57+00:00\",\"dateModified\":\"2024-06-08T12:05:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-assign-value-in-cobol\/\"},\"wordCount\":870,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#organization\"},\"articleSection\":[\"Learn\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/namso-gen.co\/blog\/how-to-assign-value-in-cobol\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-assign-value-in-cobol\/\",\"url\":\"https:\/\/namso-gen.co\/blog\/how-to-assign-value-in-cobol\/\",\"name\":\"How to assign value in COBOL?\",\"isPartOf\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#website\"},\"datePublished\":\"2024-06-08T12:05:57+00:00\",\"dateModified\":\"2024-06-08T12:05:57+00:00\",\"description\":\"COBOL, short for Common Business-Oriented Language, is a programming language specifically designed for business applications. One of the fundamental\",\"breadcrumb\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-assign-value-in-cobol\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/namso-gen.co\/blog\/how-to-assign-value-in-cobol\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-assign-value-in-cobol\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/namso-gen.co\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to assign value in COBOL?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#website\",\"url\":\"https:\/\/namso-gen.co\/blog\/\",\"name\":\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\",\"description\":\"In Namso gen blog you can get many tips regarding to Credit cards, VCC, Credit card security etc. You can generate credit cards by using Namso-gen.co\",\"publisher\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/namso-gen.co\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#organization\",\"name\":\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\",\"url\":\"https:\/\/namso-gen.co\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png\",\"contentUrl\":\"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png\",\"width\":500,\"height\":164,\"caption\":\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\"},\"image\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/synchronyfinancial\",\"https:\/\/twitter.com\/synchrony\",\"https:\/\/www.youtube.com\/synchronyfinancial\",\"https:\/\/www.instagram.com\/synchrony\",\"https:\/\/www.linkedin.com\/company\/synchrony-financial\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/89e431077ef417dfaa131f435124f18f\",\"name\":\"Casey Mayer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"caption\":\"Casey Mayer\"},\"description\":\"Guest author Casey Mayer has meticulously crafted and revised this article to the best of their knowledge and understanding. Readers are strongly advised to exercise caution, verify information independently, and rely on their own judgment when considering the information provided. Read more articles on Namso Gen here.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to assign value in COBOL?","description":"COBOL, short for Common Business-Oriented Language, is a programming language specifically designed for business applications. One of the fundamental","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:\/\/namso-gen.co\/blog\/how-to-assign-value-in-cobol\/","og_locale":"en_US","og_type":"article","og_title":"How to assign value in COBOL?","og_description":"COBOL, short for Common Business-Oriented Language, is a programming language specifically designed for business applications. One of the fundamental","og_url":"https:\/\/namso-gen.co\/blog\/how-to-assign-value-in-cobol\/","og_site_name":"Namso Gen Blog - Free Credit Card Generator [100% Valid]","article_publisher":"https:\/\/www.facebook.com\/synchronyfinancial","article_published_time":"2024-06-08T12:05:57+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2024\/03\/faq.png","type":"image\/png"}],"author":"Casey Mayer","twitter_card":"summary_large_image","twitter_creator":"@synchrony","twitter_site":"@synchrony","twitter_misc":{"Written by":"Casey Mayer","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/namso-gen.co\/blog\/how-to-assign-value-in-cobol\/#article","isPartOf":{"@id":"https:\/\/namso-gen.co\/blog\/how-to-assign-value-in-cobol\/"},"author":{"name":"Casey Mayer","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/89e431077ef417dfaa131f435124f18f"},"headline":"How to assign value in COBOL?","datePublished":"2024-06-08T12:05:57+00:00","dateModified":"2024-06-08T12:05:57+00:00","mainEntityOfPage":{"@id":"https:\/\/namso-gen.co\/blog\/how-to-assign-value-in-cobol\/"},"wordCount":870,"commentCount":0,"publisher":{"@id":"https:\/\/namso-gen.co\/blog\/#organization"},"articleSection":["Learn"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/namso-gen.co\/blog\/how-to-assign-value-in-cobol\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/namso-gen.co\/blog\/how-to-assign-value-in-cobol\/","url":"https:\/\/namso-gen.co\/blog\/how-to-assign-value-in-cobol\/","name":"How to assign value in COBOL?","isPartOf":{"@id":"https:\/\/namso-gen.co\/blog\/#website"},"datePublished":"2024-06-08T12:05:57+00:00","dateModified":"2024-06-08T12:05:57+00:00","description":"COBOL, short for Common Business-Oriented Language, is a programming language specifically designed for business applications. One of the fundamental","breadcrumb":{"@id":"https:\/\/namso-gen.co\/blog\/how-to-assign-value-in-cobol\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/namso-gen.co\/blog\/how-to-assign-value-in-cobol\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/namso-gen.co\/blog\/how-to-assign-value-in-cobol\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/namso-gen.co\/blog\/"},{"@type":"ListItem","position":2,"name":"How to assign value in COBOL?"}]},{"@type":"WebSite","@id":"https:\/\/namso-gen.co\/blog\/#website","url":"https:\/\/namso-gen.co\/blog\/","name":"Namso Gen Blog - Free Credit Card Generator [100% Valid]","description":"In Namso gen blog you can get many tips regarding to Credit cards, VCC, Credit card security etc. You can generate credit cards by using Namso-gen.co","publisher":{"@id":"https:\/\/namso-gen.co\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/namso-gen.co\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/namso-gen.co\/blog\/#organization","name":"Namso Gen Blog - Free Credit Card Generator [100% Valid]","url":"https:\/\/namso-gen.co\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png","contentUrl":"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png","width":500,"height":164,"caption":"Namso Gen Blog - Free Credit Card Generator [100% Valid]"},"image":{"@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/synchronyfinancial","https:\/\/twitter.com\/synchrony","https:\/\/www.youtube.com\/synchronyfinancial","https:\/\/www.instagram.com\/synchrony","https:\/\/www.linkedin.com\/company\/synchrony-financial"]},{"@type":"Person","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/89e431077ef417dfaa131f435124f18f","name":"Casey Mayer","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","caption":"Casey Mayer"},"description":"Guest author Casey Mayer has meticulously crafted and revised this article to the best of their knowledge and understanding. Readers are strongly advised to exercise caution, verify information independently, and rely on their own judgment when considering the information provided. Read more articles on Namso Gen here."}]}},"_links":{"self":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/posts\/229859","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/users\/57"}],"replies":[{"embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/comments?post=229859"}],"version-history":[{"count":0,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/posts\/229859\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/media\/107420"}],"wp:attachment":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/media?parent=229859"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/categories?post=229859"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/tags?post=229859"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}