Skip to main content

[archive] acucobol cgi program

  • September 3, 2008
  • 13 replies
  • 0 views

[Migrated content. Thread originally posted on 03 September 2008]

Hi

We have a text based acucobol system. I am trying to write a small cgi program to accept a customer no, display a basic order, and then accept
quantities.

The accept quantities comes in the second program and I am at a loss on how to pass other details to the second cgi program.

If anyone is able to help I would be most appreciative.

Regards

Julie Walsh

13 replies

[Migrated content. Thread originally posted on 03 September 2008]

Hi

We have a text based acucobol system. I am trying to write a small cgi program to accept a customer no, display a basic order, and then accept
quantities.

The accept quantities comes in the second program and I am at a loss on how to pass other details to the second cgi program.

If anyone is able to help I would be most appreciative.

Regards

Julie Walsh
You'll need to post a bit more information but here's a shot ...

Orderscreen.html - the POST action or Action kicks off Program1.cbl which takes data from the HTML and writes data to a file and Displays Processorder.html

Processorder.html - the POST action or Action kicks off Program2.cbl which takes data from the HTML and reads data in the file that Program1 wrote and writes / updates data to a file and Displays Confirmorder.html

Confirmorder.html - the POST action or Action kicks off Program3.cbl which completes the order for the customer

[Migrated content. Thread originally posted on 03 September 2008]

Hi

We have a text based acucobol system. I am trying to write a small cgi program to accept a customer no, display a basic order, and then accept
quantities.

The accept quantities comes in the second program and I am at a loss on how to pass other details to the second cgi program.

If anyone is able to help I would be most appreciative.

Regards

Julie Walsh
You'll need to post a bit more information but here's a shot ...

Orderscreen.html - the POST action or Action kicks off Program1.cbl which takes data from the HTML and writes data to a file and Displays Processorder.html

Processorder.html - the POST action or Action kicks off Program2.cbl which takes data from the HTML and reads data in the file that Program1 wrote and writes / updates data to a file and Displays Confirmorder.html

Confirmorder.html - the POST action or Action kicks off Program3.cbl which completes the order for the customer

[Migrated content. Thread originally posted on 03 September 2008]

Hi

We have a text based acucobol system. I am trying to write a small cgi program to accept a customer no, display a basic order, and then accept
quantities.

The accept quantities comes in the second program and I am at a loss on how to pass other details to the second cgi program.

If anyone is able to help I would be most appreciative.

Regards

Julie Walsh
You'll need to post a bit more information but here's a shot ...

Orderscreen.html - the POST action or Action kicks off Program1.cbl which takes data from the HTML and writes data to a file and Displays Processorder.html

Processorder.html - the POST action or Action kicks off Program2.cbl which takes data from the HTML and reads data in the file that Program1 wrote and writes / updates data to a file and Displays Confirmorder.html

Confirmorder.html - the POST action or Action kicks off Program3.cbl which completes the order for the customer

[Migrated content. Thread originally posted on 03 September 2008]

Hi

We have a text based acucobol system. I am trying to write a small cgi program to accept a customer no, display a basic order, and then accept
quantities.

The accept quantities comes in the second program and I am at a loss on how to pass other details to the second cgi program.

If anyone is able to help I would be most appreciative.

Regards

Julie Walsh
Since you are considering deploying via a browser, have you considered using the Web Thin client for deployment versus cgi.

Simple cgi program attached.

[Migrated content. Thread originally posted on 03 September 2008]

Hi

We have a text based acucobol system. I am trying to write a small cgi program to accept a customer no, display a basic order, and then accept
quantities.

The accept quantities comes in the second program and I am at a loss on how to pass other details to the second cgi program.

If anyone is able to help I would be most appreciative.

Regards

Julie Walsh
Thank you for your response.

It has been very helpful, my problem was passing the accepted variables on to the next program. My programs are similar to your examples. The first one
accepting user name and password and then asking for options to see
various customer related screens. One of them is the order screen similar to the one you have given me, which accepts quantities these values are then
transferred to the next program which displays price and allows confirmation of order. I notice in your example you save time, user name and ip address to a file, which will uniquely identify your user. What does the

accept ip-address from environment do exactly.

Thank you again.

Julie

[Migrated content. Thread originally posted on 03 September 2008]

Hi

We have a text based acucobol system. I am trying to write a small cgi program to accept a customer no, display a basic order, and then accept
quantities.

The accept quantities comes in the second program and I am at a loss on how to pass other details to the second cgi program.

If anyone is able to help I would be most appreciative.

Regards

Julie Walsh
I do not remeber why I put that in the code. I think I was trying to get the ip-address of the sender so that I could see if I would be able to refuse a hacker or someone snooping in on the original transaction.

[Migrated content. Thread originally posted on 03 September 2008]

Hi

We have a text based acucobol system. I am trying to write a small cgi program to accept a customer no, display a basic order, and then accept
quantities.

The accept quantities comes in the second program and I am at a loss on how to pass other details to the second cgi program.

If anyone is able to help I would be most appreciative.

Regards

Julie Walsh
I do not remeber why I put that in the code. I think I was trying to get the ip-address of the sender so that I could see if I would be able to refuse a hacker or someone snooping in on the original transaction.

[Migrated content. Thread originally posted on 03 September 2008]

Hi

We have a text based acucobol system. I am trying to write a small cgi program to accept a customer no, display a basic order, and then accept
quantities.

The accept quantities comes in the second program and I am at a loss on how to pass other details to the second cgi program.

If anyone is able to help I would be most appreciative.

Regards

Julie Walsh
I do not remeber why I put that in the code. I think I was trying to get the ip-address of the sender so that I could see if I would be able to refuse a hacker or someone snooping in on the original transaction.

[Migrated content. Thread originally posted on 03 September 2008]

Hi

We have a text based acucobol system. I am trying to write a small cgi program to accept a customer no, display a basic order, and then accept
quantities.

The accept quantities comes in the second program and I am at a loss on how to pass other details to the second cgi program.

If anyone is able to help I would be most appreciative.

Regards

Julie Walsh
I need to be able to pass cgi variables uniquely identifying the user, did that
code work in your program. i.e. did it return the ip address of the user

Thanks

Julie

[Migrated content. Thread originally posted on 03 September 2008]

Hi

We have a text based acucobol system. I am trying to write a small cgi program to accept a customer no, display a basic order, and then accept
quantities.

The accept quantities comes in the second program and I am at a loss on how to pass other details to the second cgi program.

If anyone is able to help I would be most appreciative.

Regards

Julie Walsh
like the code in the Example from Dilbert
accept client-ip from environment "REMOTE_ADDR".
you receive the IP-Adress from the user.

Possible Server Variables you can find here: http://www.w3schools.com/asp/coll_servervariables.asp

If you have an intranet you can also use "LOGON_USER" to identify an user, but this only works if the anonymous login/security is disabled in the iis configuration :(

[Migrated content. Thread originally posted on 03 September 2008]

Hi

We have a text based acucobol system. I am trying to write a small cgi program to accept a customer no, display a basic order, and then accept
quantities.

The accept quantities comes in the second program and I am at a loss on how to pass other details to the second cgi program.

If anyone is able to help I would be most appreciative.

Regards

Julie Walsh
Thanks a lot, that will solve my problem.

Julie

[Migrated content. Thread originally posted on 03 September 2008]

Hi

We have a text based acucobol system. I am trying to write a small cgi program to accept a customer no, display a basic order, and then accept
quantities.

The accept quantities comes in the second program and I am at a loss on how to pass other details to the second cgi program.

If anyone is able to help I would be most appreciative.

Regards

Julie Walsh
Thanks a lot, that will solve my problem.

Julie

[Migrated content. Thread originally posted on 03 September 2008]

Hi

We have a text based acucobol system. I am trying to write a small cgi program to accept a customer no, display a basic order, and then accept
quantities.

The accept quantities comes in the second program and I am at a loss on how to pass other details to the second cgi program.

If anyone is able to help I would be most appreciative.

Regards

Julie Walsh
Thanks a lot, that will solve my problem.

Julie