Hi,
Could anyone help me out in writing the JCL for doing a SCAN on the Natural Libraries for a particular string.
Thanks in advance.
Hi,
Could anyone help me out in writing the JCL for doing a SCAN on the Natural Libraries for a particular string.
Thanks in advance.
Yes you can search using Batch…currently I have one jcl but u need to change the variable according u r requirements…it will require some batch operations please contact u r natural administrator…please find the example jcl here…
YOUR JOB CARD
//**********************************************************************
//* MEMBER: NATSCAN ***
//* SCAN NATURAL SOURCE CODE IN ALL LIBRARIES ***
//* WARNING, THIS IS SLOW AND EXPENSIVE ***
/JOBPARM P=TESTJCL
//*****************************************************************
//JS010 EXEC NS02S010,
// NPRM=‘,IM=D,MAINPR=1’
//* SCANSRC INPUT
//* SYSTEM-ID: T FOR TEST, S FOR STOW (PRODUCTION)
//* SCAN-VALUE: TEXT UP TO 50 BYTES
//CMSYNIN DD *
SCANSRC
S,RNOG
FIN
/*
In infer from the following stmts,
//CMSYNIN DD *
SCANSRC
S,RNOG
FIN
SCANSRC is a Natural Program that is defined to your system. And “S,RNOG” are the parameters that you pass onto your program SCANSRC.
I guess we could use the SCAN utility as such instead of using any other Natural Program.