Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Replacing =NOTE= lines with editable text

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: Replacing =NOTE= lines with editable text
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: 6967
Location: porcelain throne

PostPosted: Fri Jul 09, 2010 2:06 am    Post subject:
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: 6967
Location: porcelain throne

PostPosted: Fri Jul 09, 2010 3:11 am    Post subject:
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: 6967
Location: porcelain throne

PostPosted: Fri Jul 09, 2010 4:28 am    Post subject:
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    Post subject:
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:
http://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    Post subject:
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: 6967
Location: porcelain throne

PostPosted: Sat Jul 10, 2010 9:51 pm    Post subject:
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    Post subject:
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: 6967
Location: porcelain throne

PostPosted: Thu Jul 22, 2010 2:43 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
No new posts Replacing same string with different ... vickey_dw DFSORT/ICETOOL 6 Wed Feb 22, 2017 10:44 pm
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am
No new posts How to update a portion of text in a ... Bill Woodger DFSORT/ICETOOL 25 Wed Nov 09, 2016 9:41 pm
This topic is locked: you cannot edit posts or make replies. Sort card to replace text using cross... Susanta SYNCSORT 32 Tue Sep 13, 2016 4:17 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us