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
 

 

IKJEFT01 - Can we have two queries in one step?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: IKJEFT01 - Can we have two queries in one step?
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    Post subject: Reply to: IKJEFT01 - Can we have two queries in one step?
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    Post subject: Reply to: IKJEFT01 - Can we have two queries in one step?
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    Post subject:
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

Site Director


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

PostPosted: Tue Dec 16, 2008 8:28 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Restart=Step not working ALAK SAHA JCL & VSAM 6 Fri Jun 30, 2017 6:28 pm
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts Need help with below queries ashek15 DB2 3 Thu Mar 23, 2017 1:38 am
No new posts "DFSRRC00 vs IKJEFT01" for ... arunsoods All Other Mainframe Topics 5 Fri Aug 12, 2016 9:54 pm
No new posts Converting multiple VB files to FB fi... Viswanath Reddy JCL & VSAM 6 Mon Aug 08, 2016 11:49 pm


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