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

Can we use flat PS in CICS-Cobol program


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ajaybshukla

New User


Joined: 09 Sep 2008
Posts: 39
Location: india

PostPosted: Wed Oct 15, 2008 2:17 pm
Reply with quote

Hi all,
If i want to use PS flat file in a CICS-cobol application prog then how can i proceed for that as we know there is no FD n I-O in CICS-cobol program.
Please elaborate on same.

Thanks
Ajay
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Wed Oct 15, 2008 2:26 pm
Reply with quote

You can define the dataset as Extrepartition Transient data queue (TD queue), and then use READQ TD & WRITEQ TD.

O.
Back to top
View user's profile Send private message
ajaybshukla

New User


Joined: 09 Sep 2008
Posts: 39
Location: india

PostPosted: Wed Oct 15, 2008 6:15 pm
Reply with quote

Hi ofer71,

Thanks ofer71

but Can u please give more elaboration on this issue? please

Thanks
Ajay
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Wed Oct 15, 2008 6:16 pm
Reply with quote

It's all in the fine manual (I checked that before posting) ....

O.
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Fri Oct 17, 2008 12:11 am
Reply with quote

CICS provides FCT entries which eliminate the need for FDs in applications. define your PS file in FCT and then use EXEC CICS READ/WRITE as required.

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

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Oct 17, 2008 12:31 am
Reply with quote

Ofer71 is correct -- sequential files in CICS require using a TDQ. File control entries are for VSAM or BDAM files. From the Application Programming Guide with emphasis added by me:
Quote:
4.1 An overview of file control


CICS data management services have traditionally been known as CICS file control. CICS file control offers you access to data sets that are managed by either the virtual storage access method (VSAM) or the basic direct access method (BDAM).

CICS file control lets you read, update, add, and browse data in VSAM and BDAM data sets and delete data from VSAM data sets. You can also access CICS shared data tables and coupling facility data tables using file control.

A CICS application program reads and writes its data in the form of individual records. Each read or write request is made by a CICS command.

To access a record, the application program must identify both the record and the data set that holds it. It must also specify the storage area into which the record is to be read or from which it is to be written.
Back to top
View user's profile Send private message
Raghu navaikulam

Active User


Joined: 27 Sep 2008
Posts: 193
Location: chennai

PostPosted: Wed Oct 22, 2008 12:50 am
Reply with quote

CICS uses PS datasets in the form of Extrapartition Transient Data Queue(TDQ). While defining a TDQ, we should tell CICS that, this PS file is used as an input file or output file, not both. If you want to use this PS as input and output mode, you must define 2 TDQs - one for input and one for output.
If the TDQ is defined for input purpose, CICS can read data from the TDQ( PS Dataset) and cannot write on it and viceversa.
In the CICS-COBOL application program there is no need of an Input-output section for a file-control paragraph. No need of any FD entry whether you are using a VSAM file or a PS file. These files to be defined in the appropriate CICS tables( FCT and DCT )
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 -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top