veena_nagesh2002 Warnings : 1 Active User
Joined: 07 May 2005 Posts: 110 Location: hyderabad
|
|
|
|
My job is triggered upon the transmission of file. In our jcllib around 40 jobs were coded, because of only one reason - that is to take the back up of specific files which we receive. Can any one tell me is there any way to compare the file name through IF conditons in the JCL. for your complete reference I am providing the following details
for ex:
======
Files will be cataloged through XCOM or NDM or Connect or XMIT or any other transmission. Once the file is cataloged our job will be triggered and picks up the file name completely with the following code in the first step.
//step1
//DSN1 DD DSN='%DSN', DISP=SHR
In step3 if the file name TT.FTC.I000945.* there were taking backup with .BKUP.G*, in this only the following number changes i.e I000945 every time. so want the "IF" condition in such a way that just like "move reference modification condition in cobol ex; ws-temp (3: 4)" to pick up the part of the file name which i will get in the %DSN to compare in Jcl in "IF"condition. Is this possible.
Code: |
//**********************************
//** CREATES A BACKUP DATASET **
//**********************************
// IF (STEP1.RC EQ 0) THEN << changes i need here
//STEP3 EXEC PGM=MULTIGEN,PARM='NOOV'
//*
//SYSUT1 DD DSN='%DSN', << ex: TT.FTC.I000945.ID00
// DISP=SHR
//*
//SYSUT2 DD DSN=TT.FTC.I000945.BKUP(+1), << backup file
// DISP=(NEW,CATLG,),UNIT=SYSDA,
// DCB=*.SYSUT1,
// DATACLAS=STANDARD,
// MGMTCLAS=DEV4
// ENDIF
//*
|
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
A very short answer, NO.
The existing jobs have now been coded, and I would guess working well.
As they say .... if it's working, why fix it. |
|