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 use flat PS in CICS-Cobol program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: Can we use flat PS in CICS-Cobol program
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: 2360
Location: Israel

PostPosted: Wed Oct 15, 2008 2:26 pm    Post subject:
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    Post subject: Reply to: Can we use flat PS in CICS-Cobol program
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: 2360
Location: Israel

PostPosted: Wed Oct 15, 2008 6:16 pm    Post subject:
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

Active Member


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

PostPosted: Fri Oct 17, 2008 12:11 am    Post subject:
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: 8117
Location: East Dubuque, Illinois, USA

PostPosted: Fri Oct 17, 2008 12:31 am    Post subject:
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    Post subject:
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    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 XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts How to Clear all TSQs during CICS sta... Hooman24 CICS 10 Mon Jun 26, 2017 9:46 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts CICS Transaction attach count of supp... lind sh CICS 1 Wed Jun 21, 2017 1:33 pm


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