Need someone to check my programs to understand why it is looping. The program specs is
Cobol Batch Process Creation.
User
Cobol batch process creation.
User
You have a small online business. You have a website that allows customers to register their accounts and place orders. Currently, these just populate a spreadsheet that you then use to manually process and complete orders. Using what you have learnt so far with Cobol, DB2, Vsam & JCL, you must create a batch Cobol process that can fulfil the requests below. ** The website is assumed and all required data will be generated by yourselves.
Process the account details that a customer has registered with, generate a unique reference for the account and store the details. [login to view URL] orders for accounts and store the details; this must include the ability to have 1 or more items in an order, item price and a delivery date. Each order must generate a unique reference number. [login to view URL] to process updates to an orders status to show it is progressing and the date / time it was done. [login to view URL] an adhoc reporting process that can be run to : [login to view URL] how many accounts are currently stored, [login to view URL] many orders we have by delivery day, c.A breakdown of each order by account , showing no of items, item value, order value, current status, order date and delivery date and, [login to view URL] the ability so the reporting can be run for any of the reasons above individually, or all at once.
Documentation required includes: [login to view URL] High Level Design [login to view URL] / File Design [login to view URL] Scripts / Use Cases Considered [login to view URL] Source Code, JCL, any tables or files created. [login to view URL] must create a shareable folder in your own drive and share the link in your submission. [login to view URL] must organise your own onsite and off site schedule for the duration of the project. The training room is available to use. [login to view URL] must reach out only to the support team within the dedicated chat space with any queries
ChatGPT
As an AI language model, I can provide guidance and examples for creating a batch Cobol process that can fulfill the requirements you have described. However, I am not able to create the code and documentation for you. I suggest that you work with a developer or programmer who is experienced in Cobol, DB2, Vsam, and JCL to create this batch process.
Here is a high-level design that you can use as a starting point:
Account details processing:
Accept customer account details from the website.
Generate a unique reference number for the account.
Store the account details in a DB2 table or a VSAM file.
Order processing:
Accept order details from the website, including account reference number, item(s), price, and delivery date.
Generate a unique reference number for the order.
Store the order details in a separate DB2 table or VSAM file.
Order status update:
Accept the order reference number and the new status from the website.
Update the order status and record the date and time the update was made.
Adhoc reporting:
Develop a set of Cobol programs and JCL scripts to generate the reports required.
Use SQL to query the DB2 tables or VSAM files and format the data as required.
Provide options to generate reports individually or all at once.
Account details:
Account reference number (unique identifier)
Customer name
Address
Phone number
Email address
Order details:
Order reference number (unique identifier)
Account reference number (foreign key)
Item description
Item price
Delivery date
Order date
Order status
For the test scripts and use cases, you should consider different scenarios for each of the processes, such as:
Account details processing:
Test for correct data entry.
Test for duplicate account reference numbers.
Test for errors in storing the data.
Order processing:
Test for correct data entry.
Test for duplicate order reference numbers.
Test for errors in storing the data.
Order status update:
Test for correct data entry.
Test for errors in updating the status.
Adhoc reporting: