IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Types of if conditions in jcl


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
veena_nagesh2002
Warnings : 1

Active User


Joined: 07 May 2005
Posts: 110
Location: hyderabad

PostPosted: Wed May 23, 2007 12:08 pm
Reply with quote

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                                 
//*
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed May 23, 2007 12:51 pm
Reply with quote

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.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to load to DB2 with column level ... DB2 6
No new posts Db2 SQL - how to switch among differe... DB2 18
No new posts To search DB2 table based on Conditio... DB2 1
This topic is locked: you cannot edit posts or make replies. SUM based on two conditions using SYN... SYNCSORT 7
No new posts SORT - Multiple Conditions DFSORT/ICETOOL 4
Search our Forums:

Back to Top