MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

changing of files in cics

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware
View previous topic :: View next topic  
Author Message
baskkarsubbian
Beginner


Joined: 31 Aug 2003
Posts: 18
Topics: 12

PostPosted: Wed Sep 03, 2003 7:22 am    Post subject: changing of files in cics Reply with quote

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? Rolling Eyes
Back to top
View user's profile Send private message Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed Sep 03, 2003 2:26 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
warp5
Intermediate


Joined: 02 Dec 2002
Posts: 429
Topics: 18
Location: Germany

PostPosted: Thu Sep 04, 2003 12:50 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
baskkarsubbian
Beginner


Joined: 31 Aug 2003
Posts: 18
Topics: 12

PostPosted: Thu Sep 04, 2003 12:56 am    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
warp5
Intermediate


Joined: 02 Dec 2002
Posts: 429
Topics: 18
Location: Germany

PostPosted: Thu Sep 04, 2003 8:29 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group