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

Deleting a record(a row) in pds or ps using rexx


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ceasar

New User


Joined: 03 Feb 2006
Posts: 2
Location: Chennai,India

PostPosted: Thu Mar 02, 2006 7:39 pm
Reply with quote

Hi
I need a program to delete a record (any line) inside ps or pds using rexx.
the program must read a ps/pds and delete a particular line/record in an array....


Regards,
Ceasar
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Mar 02, 2006 8:13 pm
Reply with quote

There is no REXX direct function to delete a record from dataset. However, you still have at least 3 options:

1) Use ISPF services LMMGET/LMMPUT to read and write the records back.

2) Use EXECIO to read and write records.

3) If the file is EDITable, you can use edit macro.

O.
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Thu Mar 02, 2006 8:15 pm
Reply with quote

I can't figure out from the origina post why the user wouldn't just edit the dataset and delete the row/rows?
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top