Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Types of if conditions in jcl

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Types of if conditions in jcl
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: 8593
Location: Back in jolly old England

PostPosted: Wed May 23, 2007 12:51 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Inserting records based on conditions vickey_dw DFSORT/ICETOOL 9 Wed Feb 22, 2017 1:33 pm
No new posts DFSORT report with multiple conditions Bill Woodger DFSORT/ICETOOL 9 Wed Jan 20, 2016 2:19 am
No new posts Types of variables REXX tvinodkumar7 TSO/ISPF 2 Wed Aug 26, 2015 6:57 pm
No new posts Conditions on SORT to avoid extra space vicharapusrinu JCL & VSAM 17 Thu Jan 16, 2014 1:29 pm
No new posts How to merge VSAM files with some con... Gopalakrishnan V JCL & VSAM 20 Thu May 30, 2013 1:24 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us