View previous topic :: View next topic
|
Author |
Message |
ajaybshukla
New User
Joined: 09 Sep 2008 Posts: 39 Location: india
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
You can define the dataset as Extrepartition Transient data queue (TD queue), and then use READQ TD & WRITEQ TD.
O. |
|
Back to top |
|
|
ajaybshukla
New User
Joined: 09 Sep 2008 Posts: 39 Location: india
|
|
|
|
Hi ofer71,
Thanks ofer71
but Can u please give more elaboration on this issue? please
Thanks
Ajay |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
It's all in the fine manual (I checked that before posting) ....
O. |
|
Back to top |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1193 Location: Dublin, Ireland
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
Raghu navaikulam
Active User
Joined: 27 Sep 2008 Posts: 193 Location: chennai
|
|
|
|
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 |
|
|
|