I have a problem, but I know it can do, but i dÃ³nt know the way.... I need to change the dsname for one ddname in a program COBOL BATCH. It means, I wil open a file ddname1 as dsname xxxx, put some records, close then. after that i need to oÂ´pen a file ddname1 , with dsname readed from one DB2. Could some one help me?