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
 

 

Line command to overwrite the line num with the given data

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
pattabiraman.baskaran

New User


Joined: 10 Aug 2006
Posts: 23

PostPosted: Tue Feb 13, 2007 5:19 pm    Post subject: Line command to overwrite the line num with the given data
Reply with quote

Hi,

My requirement is to overwrite a line number of the JCL with the given data. Is there any command in REXX to do it?

Example:

000001 //C0177C1T JOB ('TEST'),MSGCLASS=O,NOTIFY=&SYSUID,CLASS=T


Output should be:

LINE01 //C0177C1T JOB ('TEST'),MSGCLASS=O,NOTIFY=&SYSUID,CLASS=T

The line number "000001" should be replaced by "LINE01".

Please help me out to handle this.
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Tue Feb 13, 2007 5:28 pm    Post subject: Re: Line command to overwrite the line num with the given da
Reply with quote

Read in update mode until you get to the desired record.

Use the OVERLAY command to replace the number.

Write the updated record.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Tue Feb 13, 2007 6:20 pm    Post subject:
Reply with quote

I don't believe you can overlay the editor's line number just like this; I think you should design your own edit panel.

O.
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Group Data based on a key Arun Raj DFSORT/ICETOOL 7 Thu Apr 27, 2017 11:29 pm
No new posts unload data from table with lob columns farhad_evan DB2 0 Sat Apr 22, 2017 1:32 pm
No new posts SORT JSON type of data maxsubrat DFSORT/ICETOOL 8 Wed Apr 19, 2017 6:01 pm
No new posts Data replication from multiple Db2 ta... kishpra DB2 9 Mon Mar 27, 2017 9:58 pm


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