View previous topic :: View next topic
|
Author |
Message |
Mrspredeep
New User
Joined: 30 Jun 2010 Posts: 28 Location: USA
|
|
|
|
Hi
When you do a PREP, the procs are expanded inline, and all symbolic parameters are substituted.
But all of this is for display only, and has =NOTE= on the side. Is there anyway you can convert the =NOTE= lines to editable text?
Below is how the JCL looks after I have done a PREP:
000001 //YYYY2230 JOB (XXXX,,T),'MED PT D',
000002 //**** RESTART=JA.PS???,
000003 // CLASS=K,MSGCLASS=T,COND=(0,NE),
000004 // NOTIFY=&SYSUID,REGION=0M,USER=XXXXJOB
=NOTE= //YYYY2230 JOB (XXXX,,T),'MED PT D',
=NOTE= //**** RESTART=JA.PS???,
=NOTE= // CLASS=K,MSGCLASS=T,COND=(0,NE),
=NOTE= // NOTIFY=ACS4026,REGION=0M,USER=XXXXJOB
000005 //*
000006 /*JOBPARM L=999999
000007 //*
000008 //MURXLIB JCLLIB ORDER=(XXXX.ENDV.UNIT.PROCLIB)
000009 // INCLUDE MEMBER=JOBLIB
=NOTE= //* NEVER MODIFY THIS LIST OF LIBRARIES **
=NOTE= //JOBLIB DD DSN=SYS2.DB2T.SDSNEXIT,DISP=SHR DB2
=NOTE= // DD DSN=SYS2.DB2T.SDSNLOAD,DISP=SHR DB2
=NOTE= // DD DSN=SYS2.DB2T.RUNLIB.LOAD,DISP=SHR DB2
=NOTE= // DD DSN=XXXX.ENDV.UNIT.LOADLIB,DISP=SHR ENDEVOR LOAD
=NOTE= // DD DSN=XXXX.ENDV.SYST.LOADLIB,DISP=SHR ENDEVOR LOAD |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
see the MD (make data) line command. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
and it can be found in the ISPF EDIT PF1 help.
the above means, when you are in a VIEW or EDIT session, PF1.
the are many Help screens within this function; good read for experienced as well as novice users. |
|
Back to top |
|
|
Mrspredeep
New User
Joined: 30 Jun 2010 Posts: 28 Location: USA
|
|
|
|
Dick, thanks for giving the name of the command.
The command is MDD.
I googled up Make Data, and visited this link:
ew.share.org/client_files/callpapers/attach/SHARE_in__Seattle/S2297LD150421.pdf where there is a nice explanation of the command.
By the way, here is why I wanted to know the command:
If you have a JCL which calls a PROC,and for the purpose of testing, if you to create a test JCL which has all the proc steps within it, and if you want substitutions to be done for all symbolic parameters, here's how:
Open the JCL
Do a PREP
The PROC and all sysin cards will be expanded as notes. These lines will have =NOTE= in the prefix column.
To expand the note lines, this can be done:
Decide which portion of the notes have to be expanded, and type MDD at the start and end of the block (MDD – block command for Make Data)
All the note lines will become editable data.
Now the following can be done to remove JCL errors:
C all 1 2 xx //;c all 1 2 ** //;x all 1 2 && ;
del all x;x all 1 2 //
and then a selective deletion of displayed lines
Res
Then delete the expanded libraries, proc call, and the first statement in proc
I hope this makes some sense. It did save me a lot of manual editing to create a test JCL. |
|
Back to top |
|
|
Mrspredeep
New User
Joined: 30 Jun 2010 Posts: 28 Location: USA
|
|
|
|
Maybe I was not patient enough when searching ISPF Help, but I did not find the MDD command. Let me check again next time, because if help is explanatory enough, then a lot of queries can be answered that way. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
actually the command is MD.
you use MDD if you are executing a block command.
MDD is the entered on one line and MDD on a subsequent line is a block command.
so, you won't have any luck finding MDD. Search for MD (or Make Dataline)
by the way, my second post provides a link to the IBM manual explaining the
MD (Make Dataline) line command. |
|
Back to top |
|
|
Mrspredeep
New User
Joined: 30 Jun 2010 Posts: 28 Location: USA
|
|
|
|
Is there a way to search the contents of Help?
As far as I know, you can only browse sequentially, and that is not very efficient when you are trying to zoom in on one command. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
you can always access the INDEX, which will alphabetically provide you with topics.
start with line commands, I think they are l12 or l13, I forget.
but then that was a few releases of ISPF ago. |
|
Back to top |
|
|
|