Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

can we read a dataset without a FCT entry in cics-cobol prog

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
bhuspin

New User


Joined: 13 Aug 2008
Posts: 26
Location: chennai

PostPosted: Fri Nov 14, 2008 10:23 am    Post subject: can we read a dataset without a FCT entry in cics-cobol prog
Reply with quote

Can we read a dataset using a cobol program, the condition is the dataset doesn't have a FCT entry in cics-cobol program
Back to top
View user's profile Send private message

dick scherrer

Site Director


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

PostPosted: Fri Nov 14, 2008 10:50 am    Post subject:
Reply with quote

Hello,

No. . .

Why is this an issue for your requirement?
Back to top
View user's profile Send private message
bhuspin

New User


Joined: 13 Aug 2008
Posts: 26
Location: chennai

PostPosted: Fri Nov 14, 2008 12:52 pm    Post subject: Reply to: can we read a dataset without a FCT entry in cics-
Reply with quote

ok thanks DICK
Back to top
View user's profile Send private message
namitjai

New User


Joined: 12 Feb 2008
Posts: 41
Location: Bangalore

PostPosted: Fri Nov 14, 2008 4:05 pm    Post subject:
Reply with quote

Hi,
Can a cobol-cics program(pgm1) call a cobol program which is not a cics program(pgm2) and is reading a flat file.
If its possible than how are we going to make entry of flat file used by pgm2 into FCT.
If its not possible than can pgm1 call pgm2 where pgm2 is using a vsam file instead of flat file.

Also can pgm2 read the file using READ FILE command or it has to use EXEC CICS READ(file) command.

Thanks,
Back to top
View user's profile Send private message
Garry Carroll

Active Member


Joined: 08 May 2006
Posts: 992
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Fri Nov 14, 2008 6:04 pm    Post subject:
Reply with quote

The only supported way to read a flat file in CICS is by defining it as extra-partition TD queue. Do NOT try to use non-CICS means to access files.

Garry.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7995
Location: Bellevue, IA

PostPosted: Fri Nov 14, 2008 6:37 pm    Post subject:
Reply with quote

Quote:
Can a cobol-cics program(pgm1) call a cobol program which is not a cics program(pgm2) and is reading a flat file.
If its possible than how are we going to make entry of flat file used by pgm2 into FCT.
If its not possible than can pgm1 call pgm2 where pgm2 is using a vsam file instead of flat file.

Also can pgm2 read the file using READ FILE command or it has to use EXEC CICS READ(file) command.
Oracle Robert's prediction: there's a CICS region on its way down sometime soon.

Flat files can be extrapartition transient data queues. They cannot be added to an FCT.

A CICS COBOL program can call a COBOL program. If the called program attempts to do anything with a file (such as OPEN it), the called program will abend and it might take the entire CICS region down with it. CICS does not play well with the operating system functions inherent in the OPEN macro used by COBOL.

You have several choices: (1) convert the file being read by the called program into a table in the program, (2) remove all file logic from the called program and change the READ to READQ TD so the flat file can be added as a TDQ to the region, (3) convert the flat file to a VSAM file, add the VSAM file to the FCT, remove the called program file logic and replace the READ with a CICS READ command, or (4) figure out a way to do your function outside of CICS.
Back to top
View user's profile Send private message
namitjai

New User


Joined: 12 Feb 2008
Posts: 41
Location: Bangalore

PostPosted: Fri Nov 14, 2008 6:55 pm    Post subject:
Reply with quote

So that means that a Cics cobol program will not be able to call a normal cobol program(no cics commands) which is performing READ file command.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7995
Location: Bellevue, IA

PostPosted: Fri Nov 14, 2008 7:00 pm    Post subject:
Reply with quote

Correct -- but if the called COBOL program has no file I/O commands in it, there is no problem with CICS programs calling COBOL programs.
Back to top
View user's profile Send private message
namitjai

New User


Joined: 12 Feb 2008
Posts: 41
Location: Bangalore

PostPosted: Fri Nov 14, 2008 7:14 pm    Post subject:
Reply with quote

That answers to my question

Thanks,
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts Asynchronous CICS Processing Question moezbud CICS 0 Mon Mar 06, 2017 6:13 pm
No new posts CICS Question RE: Browse, Readnext an... moezbud CICS 7 Sun Mar 05, 2017 5:45 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us