{"id":22624649,"url":"https://github.com/barrettotte/prdcstnd","last_synced_at":"2026-01-08T01:04:48.519Z","repository":{"id":114091039,"uuid":"295873936","full_name":"barrettotte/PRDCSTND","owner":"barrettotte","description":"Pretending a produce stand would have a COBOL program to track their transactions.","archived":false,"fork":false,"pushed_at":"2020-09-19T18:22:43.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-03T13:13:19.694Z","etag":null,"topics":["cobol","cobol-example","jcl","zos","zowe"],"latest_commit_sha":null,"homepage":"","language":"COBOL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/barrettotte.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-15T23:38:22.000Z","updated_at":"2020-09-21T13:05:50.000Z","dependencies_parsed_at":"2023-06-12T14:00:25.160Z","dependency_job_id":null,"html_url":"https://github.com/barrettotte/PRDCSTND","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barrettotte%2FPRDCSTND","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barrettotte%2FPRDCSTND/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barrettotte%2FPRDCSTND/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barrettotte%2FPRDCSTND/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/barrettotte","download_url":"https://codeload.github.com/barrettotte/PRDCSTND/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246131335,"owners_count":20728303,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cobol","cobol-example","jcl","zos","zowe"],"created_at":"2024-12-09T00:17:13.343Z","updated_at":"2026-01-08T01:04:48.492Z","avatar_url":"https://github.com/barrettotte.png","language":"COBOL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Produce-Stand\n\nPretending a produce stand would have a COBOL program to track their transactions. I always wanted to learn and make something dumb with COBOL, so here it is.\n\n\n## Summary\n- Build item array from reading each record in produce item table\n- Read each transaction record from daily transactions table\n- Calculate per-item and overall totals\n- Write per-item and overall totals to output file\n\n\n### Daily Report\n```\n PRODUCE STAND DAILY REPORT\n 2020-09-19  12:55:34\n\n ----------------------------------------------------\n  ITEM ID        ITEM NAME        QUANTITY    TOTAL\n --------- --------------------- ---------- ---------\n  001       PEAR                  0052        $65.00\n  002       ORANGE                0041       $101.65\n  003       APPLE                 1288       $558.95\n  004       WATERMELON            0019        $38.00\n  005       TOMATO                0003        $18.75\n  007       DRAGONFRUIT           0002       $246.90\n ----------------------------------------------------\n\n OVERALL TOTAL:     $1029.25\n```\n\n\n### Produce Item Table - Sequential file (PS)\n```\n*001PEAR            ************************************************************\n*002ORANGE          ************************************************************\n*003APPLE           ************************************************************\n*004WATERMELON      ************************************************************\n*005TOMATO          ************************************************************\n*006CUCUMBER        ************************************************************\n*007DRAGONFRUIT     ************************************************************\n*008POTATO          ************************************************************\n```\n| Columns | Name      |\n| ------- | --------- |\n| 1:1     | Reserved  |\n| 2:4     | Item ID   |\n| 5:21    | Item Name |\n| 22:80   | Reserved  |\n\n### Daily Transactions Table - Sequential file (PS)\n```\n*00001002001750015****************FIRST TRANSACTION             2020091718371500\n*00002001001250005****************CCCCCCCCCCCCCCCCCCCCCCCCCCCCCC2020091718373000\n*00003003001250011****************CCCCCCCCCCCCCCCCCCCCCCCCCCCCCC2020091718380000\n*00004005006250003****************CCCCCCCCCCCCCCCCCCCCCCCCCCCCCC2020091718383000\n*00005003001200005****************CCCCCCCCCCCCCCCCCCCCCCCCCCCCCC2020091718390000\n*00006003000401234****************GIANT BULK ORDER              2020091719393000\n*00007004002000019****************CCCCCCCCCCCCCCCCCCCCCCCCCCCCCC2020091719400000\n*00008001001250047****************CCCCCCCCCCCCCCCCCCCCCCCCCCCCCC2020091719403000\n*00009002002900026****************CCCCCCCCCCCCCCCCCCCCCCCCCCCCCC2020091720450000\n*00010007123450002****************WOAH SOMEONE BOUGHT THIS      2020091720451500\n*00011003001200038****************LAST ONE FOR THE DAY          2020091720453000\n```\n| Columns | Name           |\n| ------- | -------------- |\n| 1:1     | Reserved       |\n| 2:6     | Transaction ID |\n| 7:9     | Item ID        |\n| 10:15   | Price per item |\n| 16:18   | Quantity       |\n| 19:34   | Reserved       |\n| 35:64   | Comments       |\n| 65:80   | DateTime       |\n\n\n\n## Development with VS Code\n- Install VS Code Extensions\n  - Zowe Explorer \n  - IBM Z Open Editor\n- Setup Zowe profile (Zowe \u003e Unix System Services)\n  - name - ```MYPROFILE```\n  - z/OS url - ```https://\u003cip\u003e:\u003cport\u003e```\n  - \"Accept connections...\" - ```false```\n  - \"API mediation layer...\" - ```blank```\n  - \"Encoding...\" - ```blank```\n\n\n## References\n- [Learning COBOL Programming with VSCode](https://learn.ibm.com/course/view.php?id=7552)\n- [COBOL Fridays: Introduction](https://developer.ibm.com/videos/get-hands-on-run-a-cobol-program/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarrettotte%2Fprdcstnd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbarrettotte%2Fprdcstnd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarrettotte%2Fprdcstnd/lists"}