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 Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts SPUFI -- Joining 3 tables – data in... Sysaron DB2 2 Wed Mar 08, 2017 4:18 am


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