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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: JCLS for Search (i.e 3.14) & Batch SPUFI submition
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    Post subject:
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    Post subject: Re: Search & Batch SPFUi - JCL
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    Post subject:
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

Moderator Team Head


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

PostPosted: Mon Jan 22, 2007 8:03 pm    Post subject: Re: JCLS for Search (i.e 3.14) & Batch SPUFI submition
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    Post subject: Re: JCLS for Search (i.e 3.14) & Batch SPUFI submition
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: 2360
Location: Israel

PostPosted: Fri Jan 26, 2007 12:55 am    Post subject:
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    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 How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
This topic is locked: you cannot edit posts or make replies. MIPS reduction for Batch job Virendra Shambharkar All Other Mainframe Topics 8 Mon Nov 07, 2016 4:02 pm
No new posts DB2 Streaming Batch Processing Problem Manshadi DB2 4 Sat Sep 24, 2016 12:14 pm
No new posts How to show message using batch jobs madprasy TSO/ISPF 7 Fri Sep 09, 2016 6:55 pm
No new posts Don't allow CICS to submit batch jobs prino JCL & VSAM 5 Mon Jul 25, 2016 3:26 pm


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