Skip to main content

DFHCSD conversion. One method.

5 replies [Last post]
pcs305
pcs305's picture
Offline
Joined: 2006-03-06

The best time to cleanup the CSD is during an upgrade, but manually copying the groups over from the old CSD to the new one can be time consuming. I wrote a little Assembler program to help me do this a bit faster.

This is the process I follow:

  1.  Firstly create the new CSD, initialize it and create the CEE groups according to the manual.
  2.  Get all the GROUP LIST's from the CSD and add them to the JCL (CSDCNVTJ)..
  3. The JCL APPEND's the lists from the old CSD to the new CSD.
  4.  The JCL will do a DFHCSDUP LIST LIST(xxx) against the new CSD. This will display all the GROUPS in the LIST and show you which GROUPS does not exist.
  5. The Assembler program CSDCNVT will read the output from the LIST command and create a DFHCSDUP command file.
  6.  Using the output from the CSDCNVT program as input to DFHCSDUP, all the Groups that does not exist in the new CSD will be copied from the old CSD.
  7. This will leave the unused/unrefferenced groups in the old CSD.

Attached below is the Source code for CSDCNVT (CSDCNVT.ASM) and the JCL (CSDCNVTJ.JCL) .

Hope it helps.

If you use this please leave a comment and let us know if it was useful.

If you make some alterations and improvements please post them back here.

Disclaimer: I'm not an Assembler guru. So don't poke fun at my code. This process worked for me but ymmv. The program CSDCNVT is  supplied as is. No warranties, guarantees comes with it. I may or may not work for you. Same goes for the JCL.

AttachmentSize
csdcnvt.asm13.45 KB
csdcnvtj.jcl4.57 KB
asmcompl.jcl903 bytes
pcs305
pcs305's picture
Offline
Joined: 2006-03-06
Re: DFHCSD conversion. One method.

I've added the Assembler compile and linkedit JCL for those people who may need it.

Ian

jaggz
Offline
Joined: 2010-10-28
Re: DFHCSD conversion. One method.

Ian,

 

One question under the CSDCNVTJ jcl.

In many steplibs you have mentioned as "STEPLIB  DD DISP=SHR,DSN=*CICSHLQ*.SDFHLOAD ". Is the SDFHLOAD corresponding to the New CICS region or else it is for OLD cics region. Could you please clarify .

pcs305
pcs305's picture
Offline
Joined: 2006-03-06
Re: DFHCSD conversion. One method.

Jaggz,


I would suggest always using the latest versions loadlibrary. Unless there is a specific need to use the old ones. But I always use the new.

Ian

jaggz
Offline
Joined: 2010-10-28
Re: DFHCSD conversion. One method.

Hi,

 

This is best safest method for CSD migrations. I really admire the way the it has been coded.

pcs305
pcs305's picture
Offline
Joined: 2006-03-06
Re: DFHCSD conversion. One method.

Thank you jaggz, I'm glad you found it usefull.

Regards

Ian