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

IKJEFT01 - Can we have two queries in one step?


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
lanand_hps

New User


Joined: 05 Dec 2007
Posts: 82
Location: chennai

PostPosted: Mon Dec 15, 2008 6:30 pm
Reply with quote

Hi,
My requirement is to check if data is present in a table.
But, i want to perform this check for different sub systems.
Can we have more than one sql query in one IKJEFT01 step or should i go for different steps?


Thanks.
Back to top
View user's profile Send private message
tarun_bhardwaj

New User


Joined: 18 Jul 2003
Posts: 39
Location: delhi

PostPosted: Mon Dec 15, 2008 8:50 pm
Reply with quote

you can have 2 queries in the same step (needless to say that each query should end with a semi-colon ';')
Back to top
View user's profile Send private message
hikaps14

Active User


Joined: 02 Sep 2005
Posts: 189
Location: Noida

PostPosted: Mon Dec 15, 2008 9:25 pm
Reply with quote

Hi,

You may be able to run to 2 queries in a single step but can you access 2 different subsystems on the same step.

I have always run queries under single subsystem in one step. I doubt if it will work in this case as well(2 different SSID).

Thanks,
-Kapil.
Back to top
View user's profile Send private message
lanand_hps

New User


Joined: 05 Dec 2007
Posts: 82
Location: chennai

PostPosted: Tue Dec 16, 2008 12:53 pm
Reply with quote

Thanks guys.
Can we use the SQLCODE generated from this query?
I'm submitting this job through REXX and want to make use of the sqlcode.
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 Dec 16, 2008 8:28 pm
Reply with quote

Hello,

If you more completely explain what you want to do you will get more useful replies.

Once the job is submitted, the sqlcode will be available to the submitted job not the rexx that submitted the job (if i understand what you are asking icon_confused.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 -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts convert file from VB to FB and use tr... DFSORT/ICETOOL 8
No new posts Forcing a step to run (even if abended) JCL & VSAM 8
No new posts step by step trace 4 ISPF dialog call... TSO/ISPF 17
Search our Forums:

Back to Top