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
 
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: 4650
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 HEX value search in a DB2 query maxsubrat DB2 2 Wed Oct 04, 2017 3:04 pm
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Generate public-private key in batch ... vasanthz All Other Mainframe Topics 6 Fri Sep 15, 2017 9:20 am
No new posts Working with hex values in Filemanage... Emile Straker IBM Tools 0 Tue Sep 12, 2017 1:42 am
No new posts Search for a string in many PDS KARTHIGADEVI CLIST & REXX 5 Fri Sep 08, 2017 2:32 pm

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