Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Efficient method for fetching data from a table

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
vampire

New User


Joined: 12 Oct 2009
Posts: 15
Location: Pune

PostPosted: Wed Oct 14, 2009 7:34 pm    Post subject: Efficient method for fetching data from a table
Reply with quote

Wat is the efficient method of fetching data?
From JCL or From Cobol.

Requirement is of fetching only one value at a time.
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8280
Location: Dubuque, Iowa, USA

PostPosted: Wed Oct 14, 2009 7:38 pm    Post subject:
Reply with quote

Quote:
Wat is the efficient method of fetching data?
From JCL or From Cobol.
I have no idea what this means -- JCL does absolutely nothing except execute programs, so how you can fetch data from JCL? How would you fetch data from COBOL?

What are you using the fetch the data? Is the data coming from a sequential file, an indexed file, a relative file, or a data base of some sort?

You've left a lot more questions in your post than were answered.
Back to top
View user's profile Send private message
vampire

New User


Joined: 12 Oct 2009
Posts: 15
Location: Pune

PostPosted: Wed Oct 14, 2009 7:53 pm    Post subject: Reply to: Efficient method for fetching data from a table
Reply with quote

sorry,

But I am using the below query

Code:
,//UNLOAD01 EXEC DB2CPROC,
,//             DB2SYS=DATG,
,//             COND=(4,LT)
,//SYSTSIN  DD  *
, RUN PROG(DSNTIAUL) PLAN(DSNTIAUL) -
, PARM('SQL')
, END
,//SYSIN    DD  *
, SELECT MAX(EMP_KEY)
,   FROM TDWPEMP
, WITH UR


So my question is ...

Running this query from a JCL and using the same in a cobol make any change in performance of my JOB??
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: Wed Oct 14, 2009 8:46 pm    Post subject:
Reply with quote

Hello,

Before you do anything else, suggest you gain an understanding of what you are currently running. . .

You are NOT "Running this query from a JCL". . . You are executing a Procedure (DB2CPROC), which in turn executes a program (most likely the Terminal Monitor Program (IKJEFT1B or similar) which is tso in batch).

JCL does not and has never run a query. . . Maybe someday, but not yet.
Back to top
View user's profile Send private message
dejunzhu

Active User


Joined: 08 May 2008
Posts: 390
Location: China

PostPosted: Wed Oct 14, 2009 9:01 pm    Post subject:
Reply with quote

I found so many people do not know the answer to the question:

What is JCL?

icon_biggrin.gif
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1786
Location: Bloomington, IL

PostPosted: Wed Oct 14, 2009 11:18 pm    Post subject:
Reply with quote

dick scherrer wrote:
You are NOT "Running this query from a JCL". . . You are executing a Procedure (DB2CPROC), which in turn executes a program (most likely the Terminal Monitor Program (IKJEFT1B or similar) which is tso in batch).

And which is, let it be noted for the record, running the assembler program DSNTIAUL to process the query.

Incidentially, DSNTIAUL does not produce output that easily read programmatically. If that output is not to be read by a human being and typed into a spreadsheet, DMS panel, etc., any efficiency gained by using DSNTIAUL is likely to be lost in running a program or script to parse it.

On the gripping hand, as "Requirement is of fetching only one value at a time.", anything short of etching the disk platter and examing the crystal patterns with a microscope is likely to provide acceptable throughput.
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: Wed Oct 14, 2009 11:34 pm    Post subject:
Reply with quote

Hello and welcome to the forum,

Quote:
And which is, let it be noted for the record, running the assembler program DSNTIAUL to process the query.
Yup, eventually. . .

Before DSNTIAUL can be invoked, something else is invoked (i.e. the terminal monitor program). . . Which then invokes DSNTIAUL. . .
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 3270 Data stream error Benchwarmer CICS 4 Tue Apr 17, 2018 12:06 am
No new posts How to list data set names with diffe... murali.andaluri CLIST & REXX 8 Thu Apr 12, 2018 11:33 pm
No new posts Searching a table for the field name? socker_dad COBOL Programming 8 Sat Mar 31, 2018 2:57 am
No new posts Need inputs on DB2 tablespace/table r... ashek15 DB2 3 Sat Mar 24, 2018 11:49 pm
No new posts Invalid XML character while producing... nikhil.bhole IBM Tools 4 Tue Mar 20, 2018 1:24 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us