View previous topic :: View next topic
|
Author |
Message |
brit_ch01
New User
Joined: 24 Dec 2007 Posts: 13 Location: Mumbai
|
|
|
|
Hi All,
I am using Screen section in my cobol program. But complier is not recognizing it. (While compile it is giving error).
Note : Type Of Compile : COBOLE
Please let me know why it is showing error.
Thanks, |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
The version of COBOL you are using does not support the SCREEN SECTION. |
|
Back to top |
|
|
brit_ch01
New User
Joined: 24 Dec 2007 Posts: 13 Location: Mumbai
|
|
|
|
Thanks a lot.
Please let me know one more thing is there any other option which is similiar to Screen section. (Basically I am trying to do some kind of utility which requires input should be entered on the Screen.)
Thanks, |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Mainframe COBOL programs that require screen input are usually implemented in CICS.
If you are running on the mainframe and want to use a screen, how do you plan on doing this outside of cics?
Wjhen you receive an error and want assistance solving it, you need to post the error. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
brit_ch01 wrote: |
Basically I am trying to do some kind of utility which requires input should be entered on the Screen |
Why aren't you using an ISPF panel, then, if this input needs to come from a TSO/ISPF session? |
|
Back to top |
|
|
brit_ch01
New User
Joined: 24 Dec 2007 Posts: 13 Location: Mumbai
|
|
|
|
superk wrote: |
brit_ch01 wrote: |
Basically I am trying to do some kind of utility which requires input should be entered on the Screen |
Why aren't you using an ISPF panel, then, if this input needs to come from a TSO/ISPF session? |
I am not getting. Can you please elaborate. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Why don't we start this over from the beginning.
My guess is that you want to create an interactive program. Where (in what environment) is this program going to be running? |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Hi,
Quote: |
input should be entered on the Screen |
Does ACCEPT verb suffice Your need, if CICS etc are not desirable? However, usually ACCEPT is not acceptable in Production of many shops. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
I don't know an easy way to ACCEPT data entered on a screen. . . |
|
Back to top |
|
|
brit_ch01
New User
Joined: 24 Dec 2007 Posts: 13 Location: Mumbai
|
|
|
|
superk wrote: |
Why don't we start this over from the beginning.
My guess is that you want to create an interactive program. Where (in what environment) is this program going to be running? |
Yes I need to create an interactive Program. My program is going run in
test region only |
|
Back to top |
|
|
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
If this your test interactive program with accept and display, then try
tso call 'loadlib module' |
|
Back to top |
|
|
brit_ch01
New User
Joined: 24 Dec 2007 Posts: 13 Location: Mumbai
|
|
|
|
superk wrote: |
Why don't we start this over from the beginning.
My guess is that you want to create an interactive program. Where (in what environment) is this program going to be running? |
The link which you have provided is very high level. Can you please
provide some link which will have the basic information |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
My program is going run in test region only |
Please clarify what "test region" means to you.
Keep in mind that while you understand your requirement clearly, most here do not. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Hi,
I think you need feactures such as present in a program "Day Finder" on this site. Check it out..
www.ibmmainframes.com/programs.php.
It allows the user to enter Century, Month, Date (perhaps not in same order) and returns the Day of that date. |
|
Back to top |
|
|
dr_te_z
New User
Joined: 08 Jun 2007 Posts: 71 Location: Zoetermeer, the Netherlands
|
|
|
|
For cobol-batch you can code "display upon console" and "accept from console" to interact with the operator at execution time. I saw this in a VSE environment. When we converted to MVS this was a "show-stopper" and had go...
But still, "display upon sysout" is still used in MVS-es for simple run-reports and so on. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
But still, "display upon sysout" is still used in MVS-es for simple run-reports and so on. |
This would allow the code to "show" things, but does not provide for the code "get"ing things.
The program is to be interactive.
TS still has not posted in which envirponment this program will execute. |
|
Back to top |
|
|
brit_ch01
New User
Joined: 24 Dec 2007 Posts: 13 Location: Mumbai
|
|
|
|
dick scherrer wrote: |
Hello,
Quote: |
My program is going run in test region only |
Please clarify what "test region" means to you.
Keep in mind that while you understand your requirement clearly, most here do not. |
My program is going run in Mainframes Environment (Test region) |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Once again - what does "test region" mean to you? The entire world is not configures as your site is. To some a test region is an entire lpar. To some it is merely a set-aside cics region. Some environments have test database subsystems, some do not. And on and on and on. . .
You need to describe your environment and explain where your process is supposed to execute. Is it tso or cics or something else?
If you cannot describe what you need to do, you will not get many useful answers. Some folks may guess, but it will be only luck if a usable reply is made.
From what you have posted, it sounds like you are not extremely familiar with the mainframe and what you are working with is code that was written to run on a pc or a unix system. |
|
Back to top |
|
|
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
brit_ch01 Have you tried the option which I posted?
Quote: |
If this your test interactive program with accept and display, then try
tso call 'loadlib module' |
|
|
Back to top |
|
|
|