EDIT a dataset without opening it?



IBM's Command List programming language & Restructured Extended Executor

Re: EDIT a dataset without opening it?

Postby enrico-sorichetti » Wed Nov 16, 2011 3:45 am

where a macro would still have to step through each system and each command.

why ?
Push it out to any system and edit any dataset you want (that you have access to). It doesn't need to open it at all!

does'n' t the command You are using follow the same road ???

it will not open the dataset in an interactive session, but it will anyway open it to process it
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 165 times

Re: EDIT a dataset without opening it?

Postby expat » Wed Nov 16, 2011 3:19 pm

To put things in a very simple way

You are in a room and the only door is closed.
Your task is to go through to the next room but you can not open that door.
expat
 
Posts: 459
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 8 times

Re: EDIT a dataset without opening it?

Postby BillyBoyo » Wed Nov 16, 2011 3:29 pm

Presumably PDSE (dumb name if locally written, by the way) is a program/macro. It seems to benefit from being given a datasetname, which it will open (with all the good stuff that that entails), search each line, and make replacements if necessary, and then close (again with all the good stuff). I am at a loss as to understand how that would be different, other than having to write it, than a macro done from scatch.

Glad it works for you, anyway.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: EDIT a dataset without opening it?

Postby dick scherrer » Thu Nov 17, 2011 12:17 am

PDSE = PDS Edit maybe?

You give it the dataset name and the from/to values and let'er rip. . .

d
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: EDIT a dataset without opening it?

Postby steve-myers » Thu Nov 17, 2011 6:53 am

dick scherrer wrote:PDSE = PDS Edit maybe?

You give it the dataset name and the from/to values and let'er rip. . .

d
PDSE is just a different way to organize a PDS. You use the same tools to update a PDSE as you use with a PDS.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: EDIT a dataset without opening it?

Postby dick scherrer » Thu Nov 17, 2011 11:22 am

Hi Steve,

Suggest the PDSE in the "command" is a bit of some kind of code - probably using an edit macro. It would probably work for both a PDS and a PDSE. . .

Maybe the TS will clarify after learning just what is being executed.

d
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: EDIT a dataset without opening it?

Postby Pedro » Tue Nov 29, 2011 6:57 am

Most of this thread is based on an unfortunate choice of wording by the OP. He clearly meant 'without editing it interactively'.
Pedro Vera
User avatar
Pedro
 
Posts: 686
Joined: Thu Jul 31, 2008 9:59 pm
Location: Silicon Valley
Has thanked: 0 time
Been thanked: 53 times

Previous

Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post