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

Checking field value in IF clause in JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Tue Aug 30, 2011 10:13 am
Reply with quote

Add a step to your skeleton JCL that executes IEFBR14 - I suspect, but do not know as you have not told us, that the JCL error is something along the lines of 'JOB HAS NO STEPS'.

Time to put your thinking cap on and think about the error and how to resolve it.
Back to top
View user's profile Send private message
Priyanka Pyne

New User


Joined: 09 Feb 2008
Posts: 95
Location: India

PostPosted: Tue Aug 30, 2011 10:22 am
Reply with quote

Thanks a lot to everyone. This is working fine now.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Aug 30, 2011 10:29 am
Reply with quote

Hello,

Quote:
This is working fine now.
So, what was the problem and what fixed it?

If you expect people to spend so much time on your several issues, the least you could do is post what the problem actually was and what fixed it.

You may find less people willing to help if you continue to have these drag-on topics and then provide no followup. . .

d
Back to top
View user's profile Send private message
Priyanka Pyne

New User


Joined: 09 Feb 2008
Posts: 95
Location: India

PostPosted: Tue Aug 30, 2011 10:36 am
Reply with quote

I updated it here as soon as i fixed it. It was giving NO STEP FOUND ERROR. I did as suggested and that worked. I should have given more detail in my earlier post itself. I am really sorry for that.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Tue Aug 30, 2011 1:03 pm
Reply with quote

Priyanka Pyne wrote:
Great!!!. Working now. I have one concern. My job has only this step and if the condition is getting satisfied i.e. email id is blank the job is getting JCL error. Is there anything which can be done?
icon_rolleyes.gif icon_rolleyes.gif icon_rolleyes.gif icon_exclaim.gif icon_exclaim.gif icon_exclaim.gif icon_evil.gif icon_evil.gif icon_confused.gif icon_confused.gif icon_sad.gif sterb050.gif
In that case, consider:
Code:
IF EMAIL <> '' THEN DO
   "FTOPEN ..."
   "FTINCL ..."
   "FTCLOSE"
   "SUBMIT ..."
END
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Wed Aug 31, 2011 1:27 am
Reply with quote

My golly-gosh! Today IS psychic day icon_exclaim.gif
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 Goto page 1, 2  Next

 


Similar Topics
Topic Forum Replies
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Join 2 files according to one key field. JCL & VSAM 3
No new posts How to move the first field of each r... DFSORT/ICETOOL 5
No new posts To search DB2 table based on Conditio... DB2 1
No new posts S0C7 - Field getting overlayed COBOL Programming 2
Search our Forums:

Back to Top