| IBM MAINFRAME HELP & SUPPORT FORUMS Technical Forums for IBM Mainframe Applications like COBOL, JCL, CICS, DB2, FileAid, DFSORT, Endevor, Xpediter, CoolGen, CA-7&11, AbendAid, IMS, IDMS, PL/I, MqSeries, SyncSort, Assembler, ChangeMan, Easytrieve, InterTest, REXX, CLIST etc...
|
| View previous topic :: View next topic |
| Author |
Message |
girish_s
Joined: 31 Jul 2007
Posts: 45
Location: india
|
| Posted: Fri Aug 08, 2008 12:39 pm Post subject: cics system definition file |
|
|
Hi,
Is is possible to query cics system definition file (which is a vsam file) in a cobol program?
I have this doubt since it is a system file and that using a system file in a user written cobol program would alter it. |
|
| Back to top |
|
Garry Carroll
Joined: 08 May 2006
Posts: 171
Location: Dublin, Ireland
|
| Posted: Fri Aug 08, 2008 2:28 pm Post subject: |
|
|
If you have the information of the structure of the data, there's no reason why you couldn't READ the file for queries.
Regards,
Garry. |
|
| Back to top |
|
girish_s
Joined: 31 Jul 2007
Posts: 45
Location: india
|
| Posted: Fri Aug 08, 2008 2:46 pm Post subject: |
|
|
| the problem here is that the definition of the csd file is not known. We have no idea of how the key structure is. Any inputs regarding it? |
|
| Back to top |
|
enrico-sorichetti
Joined: 14 Mar 2007
Posts: 3168
Location: italy
|
| Posted: Fri Aug 08, 2008 2:49 pm Post subject: Reply to: cics system definition file |
|
|
| what are the requirement that are not satified by the standard cics CSD utility ? |
|
| Back to top |
|
Garry Carroll
Joined: 08 May 2006
Posts: 171
Location: Dublin, Ireland
|
| Posted: Fri Aug 08, 2008 2:54 pm Post subject: |
|
|
You might start by looking at the IBM-supplied ADFHSAMP(DFH£CRFP) - the CSD Cross Referencing Sample Program.
Regards,
Garry. |
|
| Back to top |
|
mkarthikeyan
Joined: 07 Aug 2008
Posts: 26
Location: Bangalore
|
| Posted: Sat Aug 09, 2008 9:48 am Post subject: Reply to: cics system definition file |
|
|
You can use DFHCSDUP (CICS RDO OFF-LINE UTILITY PROGRAM) to list all the objects defined in CSD file
!!! Cautious: Consult with System admin for more info
//CONSDEF EXEC PGM=DFHCSDUP
//STEPLIB DD DSN=HLQ.SDFHLOAD,DISP=SHR
//DFHCSD DD DSN=HLQ.DFHCSD,DISP=OLD
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
LIST ALL OBJECTS
/*
Thanks
Karthikeyan
[S/360] was the biggest, riskiest decision I ever made, and I agonized about it for weeks,but deep down I believed there was nothing IBM couldn't do.
- Tom Watson, Jr. IBM Chairman and CEO 1961-1971 |
|
| Back to top |
|
| |
THIS IS AN ARCIVE FORUM IN READ ONLY MODE. IF YOU WANT TO ASK YOUR DOUBTS USE THE ACTUAL FORUM
|