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

EJESLINK NOT WORKING...


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

New User


Joined: 17 Mar 2009
Posts: 30
Location: Bangalore.India

PostPosted: Wed May 06, 2009 3:39 pm
Reply with quote

Hi All
I have tried to copy the JES messages from SPOOL while running job.. It was working fine for long time for one job. Now I am trying to use same EJESLINK step for another job. There it is not copying JESYMSG to dataset. But strange thing is that it's working for previous job fine now also.
Here is the code :
Code:
 
//JOB00001 job 
//
//....
//XSYSMSG EXEC PGM=EJESLNK,REGION=64M                 
//EJESEXT DD DSN=T50BPCN.JOB00006.CNTL,               
// UNIT=WORK,SPACE=(TRK,1),DCB=(LRECL=150,RECFM=VB),   
// DISP=(,CATLG,DELETE)                               
//EJESOUT DD SYSOUT=*,RECFM=FB,LRECL=240               
//EJESIN DD DATA                                       
JNAME JOB00001;SORT TIME D;STATUS                     
F JOB00001 FIRST                                       
:S                                                     
F JESYSMSG                                             
:E                                                     
/*     

----------------------------------------------
Please help me on this... icon_cry.gif
Should EJESLINK used for some specific jobs only ???
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Wed May 06, 2009 3:53 pm
Reply with quote

Just out of curiosity, was there any output when you ran the job? If so, why not post the output so we can, I don't know, see what the exact error was that you got? Saying "it didn't work" doesn't really give us much of a starting point.
Back to top
View user's profile Send private message
swapnilushinde

New User


Joined: 17 Mar 2009
Posts: 30
Location: Bangalore.India

PostPosted: Wed May 06, 2009 4:03 pm
Reply with quote

Hi Robert
The successful completion of above step will copy the JESYMSG in the SPOOL for current job JOB00001 as it is. But now it is copying it at all for new job. Usually this error was happening when wrong jobname is given but
now it's strange!!
Message for successful completion of EJESLINK step
Code:

EJES138 The cursor has been positioned to the row containing the string       
EJES138 The cursor has been positioned to the row containing the string       
EJES162 533 records extracted to "BATCH EXTRACT DD"                           

Current message : ( Step ran successfully bt didnt copy anything)
Code:

EJES138 The cursor has been positioned to the row containing the string     
EJES138 The cursor has been positioned to the row containing the string     
EJES163 The extract operation was not completed due to the x"D37" abend     

THE D37 ERROR IN JESYMSG :
Code:

JES3 ALLOCATED TO EJESOUT                                   
JES3 ALLOCATED TO EJESIN                                     
D37-04,IFG0554P,CL452AT1,XSYSMSG,EJESEXT,3063,PRIM16,T57CP3N.

I couldnt understand what's the reason..
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Wed May 06, 2009 4:15 pm
Reply with quote

Did you look up the D37 abend in the Messages and Codes manual? What did that tell you? Since it's Psychic Thursday, I'll give you a hint: what happens to your job if your output has more than one track's worth of data?
Back to top
View user's profile Send private message
swapnilushinde

New User


Joined: 17 Mar 2009
Posts: 30
Location: Bangalore.India

PostPosted: Wed May 06, 2009 5:10 pm
Reply with quote

Thanks a lot Robert... It was becuase the SPACE problem. But it is not giving abend for this. Anyways that was my fault... icon_cry.gif
Actually I dont have manual for this. Basically I am using this EJESLINK for fetching the completion code of job and doing SAS reporting on it. If you have a manual or any link for this please send it to me...
But what is that Psychic Thursday? I didnt get it...
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Wed May 06, 2009 5:16 pm
Reply with quote

Uh, D37 is the abend for the space problem. So it was giving the abend.

If your site is licensed for EJES, you can get the manuals from Phoenix Software at www.phoenixsoftware.com The SAS manuals are at www.sas.com

Psychic Thursday is a forum joke -- meaning if you don't tell us what the problem is by posting ACTUAL job output, we can't read your mind and figure out the problem -- because we're not psychic.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed May 06, 2009 5:20 pm
Reply with quote

Robert, FYI, I believe that psychic day is Friday this week icon_lol.gif
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Wed May 06, 2009 5:28 pm
Reply with quote

Well, dang, expat -- I could have sworn I picked up the Thursday vibe!
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed May 06, 2009 5:33 pm
Reply with quote

Quote:
Well, dang, expat -- I could have sworn I picked up the Thursday vibe!


that just means you still have 'thin skin'. icon_lol.gif
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 PD not working for unsigned packed JO... DFSORT/ICETOOL 5
No new posts Def PD not working for unsigned packe... JCL & VSAM 3
No new posts ICETOOL with JOINKEY for Big record l... DFSORT/ICETOOL 12
No new posts JCL JOB Cancel/Purge Not Working JCL & VSAM 6
No new posts OMVS Shell Script not working properly. All Other Mainframe Topics 1
Search our Forums:

Back to Top