IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Compiler is not Recognizing the Screen Section.


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
brit_ch01

New User


Joined: 24 Dec 2007
Posts: 13
Location: Mumbai

PostPosted: Mon Mar 17, 2008 7:13 pm
Reply with quote

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
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Mon Mar 17, 2008 7:20 pm
Reply with quote

The version of COBOL you are using does not support the SCREEN SECTION.
Back to top
View user's profile Send private message
brit_ch01

New User


Joined: 24 Dec 2007
Posts: 13
Location: Mumbai

PostPosted: Mon Mar 17, 2008 7:30 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Mar 17, 2008 7:51 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4651
Location: Raleigh, NC, USA

PostPosted: Mon Mar 17, 2008 8:25 pm
Reply with quote

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
View user's profile Send private message
brit_ch01

New User


Joined: 24 Dec 2007
Posts: 13
Location: Mumbai

PostPosted: Mon Mar 17, 2008 8:33 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4651
Location: Raleigh, NC, USA

PostPosted: Mon Mar 17, 2008 8:41 pm
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Mar 17, 2008 9:45 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Mar 17, 2008 10:19 pm
Reply with quote

Hello,

I don't know an easy way to ACCEPT data entered on a screen. . . icon_confused.gif
Back to top
View user's profile Send private message
brit_ch01

New User


Joined: 24 Dec 2007
Posts: 13
Location: Mumbai

PostPosted: Tue Mar 18, 2008 11:07 am
Reply with quote

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
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Tue Mar 18, 2008 11:31 am
Reply with quote

If this your test interactive program with accept and display, then try
tso call 'loadlib module'
Back to top
View user's profile Send private message
brit_ch01

New User


Joined: 24 Dec 2007
Posts: 13
Location: Mumbai

PostPosted: Tue Mar 18, 2008 7:47 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Mar 18, 2008 10:39 pm
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed Mar 19, 2008 8:20 am
Reply with quote

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
View user's profile Send private message
dr_te_z

New User


Joined: 08 Jun 2007
Posts: 71
Location: Zoetermeer, the Netherlands

PostPosted: Thu Mar 20, 2008 5:07 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Mar 20, 2008 7:54 pm
Reply with quote

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
View user's profile Send private message
brit_ch01

New User


Joined: 24 Dec 2007
Posts: 13
Location: Mumbai

PostPosted: Fri Mar 21, 2008 1:05 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Mar 21, 2008 7:23 pm
Reply with quote

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
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Fri Mar 21, 2008 8:28 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts FD Section to Create FB or Vb File Dy... COBOL Programming 1
No new posts Compiler and run JCL for basic PL/I p... PL/I & Assembler 10
No new posts Data for newly added fields not displ... IMS DB/DC 6
No new posts Sections: need one appearance of cer... DFSORT/ICETOOL 4
No new posts DATA SET LIST UTILITY screen TSO/ISPF 6
Search our Forums:

Back to Top