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

Replacing =NOTE= lines with editable text


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Mrspredeep

New User


Joined: 30 Jun 2010
Posts: 28
Location: USA

PostPosted: Fri Jul 09, 2010 1:27 am
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Fri Jul 09, 2010 2:06 am
Reply with quote

see the MD (make data) line command.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Fri Jul 09, 2010 3:11 am
Reply with quote

actually it is the MakeDataline line command
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Fri Jul 09, 2010 4:28 am
Reply with quote

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
View user's profile Send private message
Mrspredeep

New User


Joined: 30 Jun 2010
Posts: 28
Location: USA

PostPosted: Sat Jul 10, 2010 8:48 pm
Reply with quote

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
View user's profile Send private message
Mrspredeep

New User


Joined: 30 Jun 2010
Posts: 28
Location: USA

PostPosted: Sat Jul 10, 2010 8:51 pm
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Sat Jul 10, 2010 9:51 pm
Reply with quote

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
View user's profile Send private message
Mrspredeep

New User


Joined: 30 Jun 2010
Posts: 28
Location: USA

PostPosted: Thu Jul 22, 2010 1:42 am
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Thu Jul 22, 2010 2:43 am
Reply with quote

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
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts How to save SYSLOG as text data via P... All Other Mainframe Topics 4
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts TEXT-TO-PDF Compuware & Other Tools 1
No new posts I need a 4 lines block where substrin... DFSORT/ICETOOL 12
No new posts Copy few lines from SYSOUT of 10 mill... All Other Mainframe Topics 5
Search our Forums:

Back to Top