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

JCLS for Search (i.e 3.14) & Batch SPUFI submition


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

New User


Joined: 08 Jan 2007
Posts: 53
Location: Chennai

PostPosted: Fri Jan 19, 2007 5:59 pm
Reply with quote

Hi,

Can anyone give me JCLS for Search (i.e 3.14) & Batch SPUFI submition
Back to top
View user's profile Send private message
jz1b0c

Active User


Joined: 25 Jan 2004
Posts: 160
Location: Toronto, Canada

PostPosted: Sat Jan 20, 2007 2:22 am
Reply with quote

search JCL
==


//SRCHJCL1 JOB (?????????????),'SRCH JOB',
// CLASS=A,MSGCLASS=T,NOTIFY=&SYSUID
//SEARCH EXEC PGM=ISRSUPC,
// PARM=(SRCHCMP,
// 'ANYC')
//NEWDD DD DSN=USERID.SEARCH.LIBRARY,
// DISP=SHR
//OUTDD DD SYSOUT=(A)
//SYSIN DD *
SRCHFOR 'SRCH SRTING'
/*
Back to top
View user's profile Send private message
unicorn

New User


Joined: 29 May 2006
Posts: 3

PostPosted: Sat Jan 20, 2007 6:03 am
Reply with quote

//BATSPUFI JOB 123456,CLASS=J,
// MSGCLASS=A,NOTIFY=&SYSUID,TIME=1439,REGION=0M
//*********************************************
//* BATCH SPUFI JOB
//*********************************************
//PS0010 EXEC PGM=IKJEFT01,DYNAMNBR=20
//SYSIN DD *
SELECT * FROM EMP_TABLE;
/*
//SYSPRINT DD DSN=USERID.SPUFI.OUTPUT,
// DISP=(NEW,CATLG,DELETE),
// UNIT=DISK,
// SPACE=(CYL,(5,5),RLSE),
// RECFM=FB,LRECL=400,BLKSIZE=0
//SYSTSPRT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSTSIN DD *
DSN SYSTEM(DSN3)
RUN PROGRAM(DSNTEP2) PLAN(DSNTEP2)
//*

The DSN3 mentioned is your DB2 subsystem. DSNTEP2 is an IBM utility.

--------
Prabhu
Back to top
View user's profile Send private message
asridhar

New User


Joined: 04 May 2005
Posts: 5
Location: Hyderabad

PostPosted: Mon Jan 22, 2007 7:48 pm
Reply with quote

can you please tell me diffrence between SYSOUT=A and SYSOUT=*
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Mon Jan 22, 2007 8:03 pm
Reply with quote

SYSOUT=A routes the output to output class A.

SYSOUT=* routes the output to the default output class specified in the MSGCLASS= statement in the JOB definition, or, the default as defined by the system-wide default class.
Back to top
View user's profile Send private message
midhun

New User


Joined: 23 Jul 2006
Posts: 3

PostPosted: Thu Jan 25, 2007 7:38 pm
Reply with quote

The JCL is hsowing an error for DSNTEP2. Saying DSNTEP2 is not found..Do we need to do any modifications for the JCL
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Fri Jan 26, 2007 12:55 am
Reply with quote

You need to add STEPLIB with DSNTEP2's load module. Usually, it will be in prefix.SDSNLOAD or prefix.SDSNEXIT.

O.
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

 


Similar Topics
Topic Forum Replies
No new posts DELETE SPUFI DB2 1
No new posts Search two or more word with FILEAID Compuware & Other Tools 15
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts How to get a stack trace on a looping... ABENDS & Debugging 5
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
Search our Forums:

Back to Top