View previous topic :: View next topic |
Author |
Message |
baskkarsubbian Beginner
Joined: 31 Aug 2003 Posts: 18 Topics: 12
|
Posted: Wed Sep 03, 2003 7:22 am Post subject: changing of files in cics |
|
|
Hi,
I used two files in my cics application program say file1 and file2 but later on I wish to interchange the files.
In detail file1 is input and file2 is output later i wish to change file2 as input and file1 as input (Don't bothetr about the records) what are all the changes i have to do in my program?  |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Wed Sep 03, 2003 2:26 pm Post subject: |
|
|
baskkarsubbian,
When you say files, I assume that you are reffering to VSAM files. You need to swap the entires in the FCT(file control table). Within the program you need to change the file opening ,reading, updating sections.
Hope this helps...
cheers
kolusu |
|
Back to top |
|
 |
warp5 Intermediate

Joined: 02 Dec 2002 Posts: 429 Topics: 18 Location: Germany
|
Posted: Thu Sep 04, 2003 12:50 am Post subject: |
|
|
If he is the only one using these files then he can change the DDName to the different DSName with CEMT I FI(DDName) without changing his programs at all. He must have CEMT authorization to open/close/change. |
|
Back to top |
|
 |
baskkarsubbian Beginner
Joined: 31 Aug 2003 Posts: 18 Topics: 12
|
Posted: Thu Sep 04, 2003 12:56 am Post subject: |
|
|
Ya exactly it's a vsam file and i'm not clear about your answer to swap the files in the fct. Can you explain in detail if you have few minites for me .
Thanks in advance |
|
Back to top |
|
 |
warp5 Intermediate

Joined: 02 Dec 2002 Posts: 429 Topics: 18 Location: Germany
|
Posted: Thu Sep 04, 2003 8:29 am Post subject: |
|
|
All you had to do is try out the CEMT command. The results are:
I FI(DFHCSD)
STATUS: RESULTS - OVERTYPE TO MODIFY
Fil(DFHCSD ) Vsa Clo Ena Rea Upd Add Bro Del Sha
Dsn( TBASLO.DBT.TS22.DFHCSD.KSDS )
Close both datasets.
You can then just overtype the Dsn(......) of each dataset setting it to the Dsname you need.
Open both datasets. |
|
Back to top |
|
 |
|
|