{"id":119917,"date":"2024-03-23T20:23:37","date_gmt":"2024-03-23T11:23:37","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/cobol%e3%81%ae%e6%96%87%e5%ad%97%e5%88%97%e3%81%ae%e6%9c%ab%e5%b0%be%e3%81%ae%e7%a9%ba%e7%99%bd%e3%82%92%e9%99%a4%e5%8e%bb\/"},"modified":"2024-03-28T04:02:06","modified_gmt":"2024-03-27T19:02:06","slug":"cobol%e3%81%ae%e6%96%87%e5%ad%97%e5%88%97%e3%81%ae%e6%9c%ab%e5%b0%be%e3%81%ae%e7%a9%ba%e7%99%bd%e3%82%92%e9%99%a4%e5%8e%bb","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/cobol%e3%81%ae%e6%96%87%e5%ad%97%e5%88%97%e3%81%ae%e6%9c%ab%e5%b0%be%e3%81%ae%e7%a9%ba%e7%99%bd%e3%82%92%e9%99%a4%e5%8e%bb\/","title":{"rendered":"COBOL\u306e\u6587\u5b57\u5217\u306e\u672b\u5c3e\u306e\u7a7a\u767d\u3092\u9664\u53bb"},"content":{"rendered":"<p>COBOL \u3067\u306f\u3001\u6587\u5b57\u5217\u672b\u5c3e\u306e\u7a7a\u767d\u6587\u5b57\u3092\u524a\u9664\u3059\u308b\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ol>\n<li>STRING\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u6587\u5b57\u5217\u5185\u306e\u30b9\u30da\u30fc\u30b9\u3092\u7a7a\u306b\u7f6e\u63db\u3057\u3066\u304b\u3089TRIM\u6f14\u7b97\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u672b\u5c3e\u306e\u30b9\u30da\u30fc\u30b9\u3092\u524a\u9664\u3067\u304d\u307e\u3059\u3002\u30b3\u30fc\u30c9\u306e\u4f8b\u3092\u6b21\u306b\u793a\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code>01 MY-STRING        PIC X(10) VALUE 'COBOL     '.\r\n01 RESULT-STRING    PIC X(10).\r\nMOVE SPACES TO RESULT-STRING.\r\nSTRING MY-STRING DELIMITED BY SPACE\r\nINTO RESULT-STRING\r\nON OVERFLOW\r\nEND-STRING\r\nEND-STRING.\r\nMOVE FUNCTION TRIM(RESULT-STRING) TO RESULT-STRING.\r\nDISPLAY RESULT-STRING.\r\n<\/code><\/pre>\n<ol>\n<li>INSPECT\u95a2\u6570\u3092\u4f7f\u3046: INSPECT\u95a2\u6570\u306f\u6587\u5b57\u5217\u5185\u306e\u6700\u5f8c\u306e\u975e\u7a7a\u767d\u6587\u5b57\u306e\u4f4d\u7f6e\u3092\u8abf\u3079\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u305d\u306e\u5f8cSUBSTRING\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u305d\u306e\u4f4d\u7f6e\u307e\u3067\u306e\u6587\u5b57\u5217\u3092\u5207\u308a\u53d6\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u304c\u30b3\u30fc\u30c9\u306e\u30b5\u30f3\u30d7\u30eb\u3067\u3059:<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code>01 MY-STRING        PIC X(10) VALUE 'COBOL     '.\r\n01 LENGTH           PIC 9(2).\r\n01 RESULT-STRING    PIC X(10).\r\nMOVE LENGTH OF MY-STRING TO LENGTH.\r\nINSPECT FUNCTION REVERSE(MY-STRING)\r\nTALLYING LENGTH FOR LEADING SPACES.\r\nMOVE FUNCTION SUBSTRING(MY-STRING, 1, LENGTH) TO RESULT-STRING.\r\nDISPLAY RESULT-STRING.\r\n<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u65b9\u6cd5\u3067\u306f\u3069\u3061\u3089\u3082\u6587\u5b57\u5217\u672b\u5c3e\u306e\u7a7a\u767d\u3092\u53d6\u308a\u9664\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u306e\u3067\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u9069\u5207\u306a\u65b9\u6cd5\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>COBOL \u3067\u306f\u3001\u6587\u5b57\u5217\u672b\u5c3e\u306e\u7a7a\u767d\u6587\u5b57\u3092\u524a\u9664\u3059\u308b\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002 STRING\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u6587\u5b57\u5217\u5185\u306e\u30b9\u30da\u30fc\u30b9\u3092\u7a7a\u306b\u7f6e\u63db\u3057\u3066\u304b\u3089TRIM\u6f14\u7b97\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u672b\u5c3e\u306e\u30b9\u30da\u30fc\u30b9\u3092\u524a\u9664\u3067\u304d\u307e\u3059\u3002\u30b3\u30fc\u30c9\u306e\u4f8b\u3092\u6b21\u306b\u793a [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-119917","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>COBOL\u306e\u6587\u5b57\u5217\u306e\u672b\u5c3e\u306e\u7a7a\u767d\u3092\u9664\u53bb - Blog - Silicon Cloud<\/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:\/\/www.silicloud.com\/ja\/blog\/cobol\u306e\u6587\u5b57\u5217\u306e\u672b\u5c3e\u306e\u7a7a\u767d\u3092\u9664\u53bb\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"COBOL\u306e\u6587\u5b57\u5217\u306e\u672b\u5c3e\u306e\u7a7a\u767d\u3092\u9664\u53bb\" \/>\n<meta property=\"og:description\" content=\"COBOL \u3067\u306f\u3001\u6587\u5b57\u5217\u672b\u5c3e\u306e\u7a7a\u767d\u6587\u5b57\u3092\u524a\u9664\u3059\u308b\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002 STRING\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u6587\u5b57\u5217\u5185\u306e\u30b9\u30da\u30fc\u30b9\u3092\u7a7a\u306b\u7f6e\u63db\u3057\u3066\u304b\u3089TRIM\u6f14\u7b97\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u672b\u5c3e\u306e\u30b9\u30da\u30fc\u30b9\u3092\u524a\u9664\u3067\u304d\u307e\u3059\u3002\u30b3\u30fc\u30c9\u306e\u4f8b\u3092\u6b21\u306b\u793a [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/cobol\u306e\u6587\u5b57\u5217\u306e\u672b\u5c3e\u306e\u7a7a\u767d\u3092\u9664\u53bb\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2024-03-23T11:23:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-27T19:02:06+00:00\" \/>\n<meta name=\"author\" content=\"\u590f\u6a39, \u98a8\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u590f\u6a39, \u98a8\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/cobol%e3%81%ae%e6%96%87%e5%ad%97%e5%88%97%e3%81%ae%e6%9c%ab%e5%b0%be%e3%81%ae%e7%a9%ba%e7%99%bd%e3%82%92%e9%99%a4%e5%8e%bb\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/cobol%e3%81%ae%e6%96%87%e5%ad%97%e5%88%97%e3%81%ae%e6%9c%ab%e5%b0%be%e3%81%ae%e7%a9%ba%e7%99%bd%e3%82%92%e9%99%a4%e5%8e%bb\/\",\"name\":\"COBOL\u306e\u6587\u5b57\u5217\u306e\u672b\u5c3e\u306e\u7a7a\u767d\u3092\u9664\u53bb - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2024-03-23T11:23:37+00:00\",\"dateModified\":\"2024-03-27T19:02:06+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4e591db2661c4cc425470b461259391d\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/cobol%e3%81%ae%e6%96%87%e5%ad%97%e5%88%97%e3%81%ae%e6%9c%ab%e5%b0%be%e3%81%ae%e7%a9%ba%e7%99%bd%e3%82%92%e9%99%a4%e5%8e%bb\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/cobol%e3%81%ae%e6%96%87%e5%ad%97%e5%88%97%e3%81%ae%e6%9c%ab%e5%b0%be%e3%81%ae%e7%a9%ba%e7%99%bd%e3%82%92%e9%99%a4%e5%8e%bb\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/cobol%e3%81%ae%e6%96%87%e5%ad%97%e5%88%97%e3%81%ae%e6%9c%ab%e5%b0%be%e3%81%ae%e7%a9%ba%e7%99%bd%e3%82%92%e9%99%a4%e5%8e%bb\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"COBOL\u306e\u6587\u5b57\u5217\u306e\u672b\u5c3e\u306e\u7a7a\u767d\u3092\u9664\u53bb\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4e591db2661c4cc425470b461259391d\",\"name\":\"\u590f\u6a39, \u98a8\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/65e0ff40534461b1fa000382dc194e1716f793ab0bcb218ac3c40895551a08c5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/65e0ff40534461b1fa000382dc194e1716f793ab0bcb218ac3c40895551a08c5?s=96&d=mm&r=g\",\"caption\":\"\u590f\u6a39, \u98a8\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/natsukikaze\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/cobol%e3%81%ae%e6%96%87%e5%ad%97%e5%88%97%e3%81%ae%e6%9c%ab%e5%b0%be%e3%81%ae%e7%a9%ba%e7%99%bd%e3%82%92%e9%99%a4%e5%8e%bb\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"COBOL\u306e\u6587\u5b57\u5217\u306e\u672b\u5c3e\u306e\u7a7a\u767d\u3092\u9664\u53bb - Blog - Silicon Cloud","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:\/\/www.silicloud.com\/ja\/blog\/cobol\u306e\u6587\u5b57\u5217\u306e\u672b\u5c3e\u306e\u7a7a\u767d\u3092\u9664\u53bb\/","og_locale":"ja_JP","og_type":"article","og_title":"COBOL\u306e\u6587\u5b57\u5217\u306e\u672b\u5c3e\u306e\u7a7a\u767d\u3092\u9664\u53bb","og_description":"COBOL \u3067\u306f\u3001\u6587\u5b57\u5217\u672b\u5c3e\u306e\u7a7a\u767d\u6587\u5b57\u3092\u524a\u9664\u3059\u308b\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002 STRING\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u6587\u5b57\u5217\u5185\u306e\u30b9\u30da\u30fc\u30b9\u3092\u7a7a\u306b\u7f6e\u63db\u3057\u3066\u304b\u3089TRIM\u6f14\u7b97\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u672b\u5c3e\u306e\u30b9\u30da\u30fc\u30b9\u3092\u524a\u9664\u3067\u304d\u307e\u3059\u3002\u30b3\u30fc\u30c9\u306e\u4f8b\u3092\u6b21\u306b\u793a [&hellip;]","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/cobol\u306e\u6587\u5b57\u5217\u306e\u672b\u5c3e\u306e\u7a7a\u767d\u3092\u9664\u53bb\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2024-03-23T11:23:37+00:00","article_modified_time":"2024-03-27T19:02:06+00:00","author":"\u590f\u6a39, \u98a8","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u590f\u6a39, \u98a8"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/cobol%e3%81%ae%e6%96%87%e5%ad%97%e5%88%97%e3%81%ae%e6%9c%ab%e5%b0%be%e3%81%ae%e7%a9%ba%e7%99%bd%e3%82%92%e9%99%a4%e5%8e%bb\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/cobol%e3%81%ae%e6%96%87%e5%ad%97%e5%88%97%e3%81%ae%e6%9c%ab%e5%b0%be%e3%81%ae%e7%a9%ba%e7%99%bd%e3%82%92%e9%99%a4%e5%8e%bb\/","name":"COBOL\u306e\u6587\u5b57\u5217\u306e\u672b\u5c3e\u306e\u7a7a\u767d\u3092\u9664\u53bb - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2024-03-23T11:23:37+00:00","dateModified":"2024-03-27T19:02:06+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4e591db2661c4cc425470b461259391d"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/cobol%e3%81%ae%e6%96%87%e5%ad%97%e5%88%97%e3%81%ae%e6%9c%ab%e5%b0%be%e3%81%ae%e7%a9%ba%e7%99%bd%e3%82%92%e9%99%a4%e5%8e%bb\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/cobol%e3%81%ae%e6%96%87%e5%ad%97%e5%88%97%e3%81%ae%e6%9c%ab%e5%b0%be%e3%81%ae%e7%a9%ba%e7%99%bd%e3%82%92%e9%99%a4%e5%8e%bb\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/cobol%e3%81%ae%e6%96%87%e5%ad%97%e5%88%97%e3%81%ae%e6%9c%ab%e5%b0%be%e3%81%ae%e7%a9%ba%e7%99%bd%e3%82%92%e9%99%a4%e5%8e%bb\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"COBOL\u306e\u6587\u5b57\u5217\u306e\u672b\u5c3e\u306e\u7a7a\u767d\u3092\u9664\u53bb"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4e591db2661c4cc425470b461259391d","name":"\u590f\u6a39, \u98a8","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/65e0ff40534461b1fa000382dc194e1716f793ab0bcb218ac3c40895551a08c5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/65e0ff40534461b1fa000382dc194e1716f793ab0bcb218ac3c40895551a08c5?s=96&d=mm&r=g","caption":"\u590f\u6a39, \u98a8"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/natsukikaze\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/cobol%e3%81%ae%e6%96%87%e5%ad%97%e5%88%97%e3%81%ae%e6%9c%ab%e5%b0%be%e3%81%ae%e7%a9%ba%e7%99%bd%e3%82%92%e9%99%a4%e5%8e%bb\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/119917","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=119917"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/119917\/revisions"}],"predecessor-version":[{"id":199905,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/119917\/revisions\/199905"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=119917"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=119917"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=119917"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}