MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

JEM / JSCAN in Batch

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
naveen
Beginner


Joined: 03 Dec 2002
Posts: 90
Topics: 31

PostPosted: Thu Jan 09, 2003 2:48 am    Post subject: JEM / JSCAN in Batch Reply with quote

How to use JEM or JSCAN in batch?

When I want to scan a job for errors , I use JEM or JSCAN on the job online. How to scan a job for errors in the batch mode?
Back to top
View user's profile Send private message Send e-mail
Manas Biswal
Intermediate


Joined: 29 Nov 2002
Posts: 382
Topics: 27
Location: Chennai, India

PostPosted: Thu Jan 09, 2003 4:43 am    Post subject: Reply with quote

You can use TYPERUN=SCAN on the jobcard and submit your job. Your job will not be run but scanned for errors.

Regards,
Manas
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
naveen
Beginner


Joined: 03 Dec 2002
Posts: 90
Topics: 31

PostPosted: Thu Jan 09, 2003 5:37 am    Post subject: Reply with quote

No Manas,
This is not what I want.
I want to do JEM/JSCAN in batch.
I want to see the appropriate error messages which JEM provides while used in online mode , same thing I want to do in batch mode.
Back to top
View user's profile Send private message Send e-mail
Ashish Jain
Beginner


Joined: 09 Dec 2002
Posts: 15
Topics: 0
Location: India

PostPosted: Thu Jan 09, 2003 5:51 am    Post subject: Reply with quote

JEM is JOB Edit Macro. And Edit Macros are not supposed to run in batch.
Or are they Question
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
naveen
Beginner


Joined: 03 Dec 2002
Posts: 90
Topics: 31

PostPosted: Thu Jan 09, 2003 10:36 am    Post subject: Reply with quote

Ashish,
I didn't mean I exactly want to run JEM in batch . Anything of that sort , which can be submitted in job and can display such error mesages.

In my installation , we are having a tool called as JOBSCAN (JCL validation tool) , prepared by Diversified softwares Inc.
If any one , knows about that : I tried to use that in batch , but was not successful.

I am not saying that I want a product specific solution , but any solution of such type will work.
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Thu Jan 09, 2003 10:54 am    Post subject: Reply with quote

Naveen,

JSCAN/JEM

Search in the above linked manual for "BATCH" and you will find the batch invocation panel as well as the JCL for invoking in the FOREGROUND mode.

Hope this helps...

cheers

kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Mike
Beginner


Joined: 03 Dec 2002
Posts: 114
Topics: 0
Location: Sydney, Australia

PostPosted: Thu Jan 09, 2003 4:58 pm    Post subject: Reply with quote

Ashish,
edit macro's can be run in batch, however somehting like JEM would probably be problematic/useless. Problematic because generally you would have to issue and END to end the edit session, otherwise the batch job would never end (in thoery as you actually end up getting an error). Useless because if it were END you'd lose the MSG lines and labels.

I use edit macro's in batch extensively and they can be extremly useful. e.g. I have currently written a utility that converts JCL, the JOB, the invoked procedures and the underlying parameters) that is invoked online but submits a batch job that does the actual conversion. This will save people days perhaps even weeks when undertaling system. Instead of waiting for quite some time for a response, if the conversion were done in foreground, a conversion simply requires a few parameters to be input, enter pressed and then the user is free to continue with another task.

re the original question,

here's some JCL that would obviously need amending You should also check out the manuals for the J02YJS program. If I remember correctly I'm actually using JOBSCAN to resolve symbolics in this job.

Code:

//DMI021DG JOB UD228542026,'MITTP003 DSN EXTRCT ',CLASS=A,             
//             MSGCLASS=X,                                             
//         NOTIFY=&SYSUID                                               
//*********************************************************************
//*  JOB/SCAN PROC - EXECUTED BY JSMVS (MVS SYSTEMS)                   
//*  REF:  SAMPLIB(JS6PROC)                                             
//*                                                                     
//*  NOTE: MODIFY ITEMS INDICATED BY ARROWS <==                         
//*********************************************************************
//STEP01  EXEC PGM=J02YJS,PARM=S,REGION=4096K                           
//*                                                                     
//* NOTE:  RUN TYPE 'S' = SCAN, 'C' = CHANGE, 'R' = REFORMAT,           
//*        'CR' = CHANGE & REFORMAT, 'CS' = CHANGE & SCAN,             
//*        'RS' = REFORMAT & SCAN, 'CRS' = CHANGE, REFORMAT, & SCAN.   
//*                                                                     
//STEPLIB  DD  DISP=SHR,DSN=SYS1.NSMP.LINKLIB                           
//JLMSG    DD  DISP=SHR,DSN=SYSS.JOBSCAN.PARMLIB                       
//JLRCL    DD  DISP=SHR,DSN=DPRD#G.TSC.DATALIB(JSOPT01)                 
//         DD  DISP=SHR,DSN=DPRD#G.TSC.DATALIB(JSOPT02)                 
//         DD  DISP=SHR,DSN=DPRD#G.TSC.DATALIB(JSOPT03)                 
//         DD  *                                                       
INPUT SELECTION                                                         
     DSN='DMI021.JSCAN.JCL' <== JCL LIBRARY                             
     SELECT=ALL                       <== SEE COMMENTS BELOW           
     SOURCE TYPE=PDS                  <== TYPE OF INPUT LIB             
REPORT OPTIONS                                                         
    OPTIONS IN EFFECT     =PRINT                                       
    STRUCTURED JCL LISTING=NOPRINT    <== PRINT SJL REPORT?             
    JCR                   =NOINJCL,OUTJCL,COMMANDS                     
CONTROL TABLES                                                         
     BA01,01DSN                                                         
     BA01,02DISP                                                       
     BA01,03SPACE                                                       
     BA01,03UNIT                                                       
//JLCHLI   DD  SYSOUT=*                                                 
//JLCHLO   DD  SYSOUT=*                                               
//JLSUMR   DD  SYSOUT=*                                               
//JLCHMO   DD  DSN=&&ST01A,DISP=(,PASS),                               
//             UNIT=VIO,SPACE=(CYL,(10,10,900)),RECFM=FB,LRECL=80     
//JLRULES  DD  DUMMY                                                   
//JLSSR    DD  SYSOUT=*                                               
//JLOPE    DD  SYSOUT=*                                               
//JLSNAP   DD  SYSOUT=*                                               
//JLDIAG   DD  SYSOUT=*                                               
//JLKAC    DD  SYSOUT=*                                               
//SYSUDUMP DD  SYSOUT=*                                               
//SYSOUD   DD  SYSOUT=*                                               
//SYSOUT   DD  SYSOUT=*                                               
//ABNLIGNR DD  DUMMY               IGNORE ABENDAID                     
//*--------------------------------------------------------------------
[/b]
_________________
Regards,
Mike.
Back to top
View user's profile Send private message
dojeb
Beginner


Joined: 14 Jan 2003
Posts: 13
Topics: 0
Location: Morgan Hill, CA,USA

PostPosted: Wed Jan 15, 2003 11:39 pm    Post subject: Reply with quote

As Mike mentioned on Dec. 12, 2002. There is some Batch JCL in the JOB/SCAN "SAMPLIB" library called JSMVS. You can use this sample JCL to perform Validation, Make Changes to your JCL, Reformat/Align the JCL parameter in the format you require or performa all of these functions at your installation.
Back to top
View user's profile Send private message Visit poster's website
anand_b
Beginner


Joined: 16 Dec 2002
Posts: 2
Topics: 1

PostPosted: Tue Jun 24, 2003 9:08 pm    Post subject: Reply with quote

Hi Kolusu,

The link does not exist anymore. Could you please post the updated link if available. Thanks !

Anand

Quote:

Naveen,

JSCAN/JEM

Search in the above linked manual for "BATCH" and you will find the batch invocation panel as well as the JCL for invoking in the FOREGROUND mode.

Hope this helps...

cheers

kolusu
Back to top
View user's profile Send private message
dojeb
Beginner


Joined: 14 Jan 2003
Posts: 13
Topics: 0
Location: Morgan Hill, CA,USA

PostPosted: Wed Jun 25, 2003 10:18 am    Post subject: Reply with quote

If you have any further questions on how to invoke JOB/SCAN via Batch, call their toll free # in the US at 800/273-3774.
Doje
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group