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
 

 

Filter Jobid is not working in the following code

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
teethu thomas

New User


Joined: 17 May 2007
Posts: 24
Location: India

PostPosted: Wed Jun 06, 2007 10:09 pm    Post subject: Filter Jobid is not working in the following code
Reply with quote

ADDRESS TSO
"ALLOC F(ISFIN) TRACKS SPACE(1) REU"
"ALLOC F(ISFOUT) DA ('DFC2.C03399.GLOB.FFB.SPOOL2') SHR"
"ALLOC F(TEMPPRT) DA('DFC2.C03399.GLOB.FFB.SPOOL') SHR"

SAY 'ENTER JOB ID'
PULL JOBID
QUEUE "PRE C033995$"
QUEUE "ST"
QUEUE " "
QUEUE "FILTER JOBID EQ "JOBID
QUEUE "++?"
QUEUE "FIND 'OUTD'"
QUEUE "++S"
QUEUE "PRINT FILE TEMPPRT "
QUEUE "PRINT 1 999999"
QUEUE "PRINT CLOSE"
QUEUE "END"
QUEUE "EXIT"

"EXECIO" QUEUED()" DISKW ISFIN (FINIS" /* INPUT TO SDSF BATCH */

ADDRESS ISPEXEC "SELECT PGM(ISFAFD) PARM('++32,255)" /* INVOKE SDSF */
SAY 'JOB FINISHED'
EXIT

In this code Filter Jobid is not working . Evverything else is workig fine. The first job in the spool is getting copied into the file. Can anybody tell me why it is not working. I have traced and copied the command and tried it in the spool that time it worked fine.
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Jun 06, 2007 10:39 pm    Post subject:
Reply with quote

Take a look at this thread

http://ibmmainframes.com/viewtopic.php?t=20505
Back to top
View user's profile Send private message
teethu thomas

New User


Joined: 17 May 2007
Posts: 24
Location: India

PostPosted: Thu Jun 07, 2007 8:12 pm    Post subject: Re: Filter Jobid is not working in the following code
Reply with quote

I have tried what ever mentioned in the link you have given but it is till not working. I have tried select as well as filter, it is working fine when i tried it in the spool i dont know hwy it is not working from the program. Can somebody suggest some other way to filter out a particular JOBID.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Jun 07, 2007 8:45 pm    Post subject:
Reply with quote

What exactly are you trying to do, copy the selected output of a job into a dataset. For one job or multiple jobs ?

You say that the first job is being copied but not other jobs.

Please give some more detail.
Back to top
View user's profile Send private message
teethu thomas

New User


Joined: 17 May 2007
Posts: 24
Location: India

PostPosted: Thu Jun 07, 2007 8:47 pm    Post subject: Re: Filter Jobid is not working in the following code
Reply with quote

I am trying to copy a unique job (using JOBID) from the spool to a dataset.
Back to top
View user's profile Send private message
teethu thomas

New User


Joined: 17 May 2007
Posts: 24
Location: India

PostPosted: Thu Jun 07, 2007 8:48 pm    Post subject: Re: Filter Jobid is not working in the following code
Reply with quote

Actually there are multiple jobs with the same JOBNAME. So I am trying to identify using the JOBID.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Jun 07, 2007 8:53 pm    Post subject:
Reply with quote

That was the exact problem that another user had, and the thread that I posted and linked to worked perfectly for that user.

Strange why it doesn't for you. You get nothing at all in the SDSF out dataset
Back to top
View user's profile Send private message
teethu thomas

New User


Joined: 17 May 2007
Posts: 24
Location: India

PostPosted: Thu Jun 07, 2007 9:09 pm    Post subject: Re: Filter Jobid is not working in the following code
Reply with quote

I am getting written the spool into the output dataset but I am getting written the First Job. The filter is not working when I try through the REXX. Actually there are more than one job inthe SDSF in the same name that is why I am trying to filter using JOBID. But it is not filtering it out. Can you suggest something for this.( I have also used the ISFOUT to debug )
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Jun 07, 2007 9:14 pm    Post subject:
Reply with quote

The code I used actually ran PGM=SDSF rather than from within a REXX, but I really can't see REXX causing a problem.

Try it in SDSF batch and see what happens. Use the code that I posted, just need to change it to fit your standards etc. etc.
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts CA Workload Automation event code help vinu78 CA Products 10 Wed Mar 01, 2017 10:05 am
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts MAX-RC 88 and Return code 606 in DFH0... lind sh CICS 2 Tue Jan 24, 2017 1:23 pm


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