MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

READ dataset

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
cyberuser
Beginner


Joined: 15 Oct 2005
Posts: 29
Topics: 12

PostPosted: Tue Jul 17, 2007 8:05 pm    Post subject: READ dataset Reply with quote

i would like to open a dataset in edit mode (3.4 or sysout in sdsf) and run my rexx (a simple code that will reside in one of the SYSEXEC DDs). For this i'm facing a problem because i don't know how to read the dataset/sysout that i just opened in edit mode into my code. Any suggestion ??
Back to top
View user's profile Send private message
ofer71
Intermediate


Joined: 12 Feb 2003
Posts: 358
Topics: 4
Location: Israel

PostPosted: Wed Jul 18, 2007 12:31 am    Post subject: Reply with quote

Start with edit macro to get the dataset/member name.

The use either EXECIO to read the dataset (if it's too large) or simply use edit macro commands.

O.
________
Mercedes-Benz SLC-Class history


Last edited by ofer71 on Sat Feb 05, 2011 12:03 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
cyberuser
Beginner


Joined: 15 Oct 2005
Posts: 29
Topics: 12

PostPosted: Wed Jul 18, 2007 11:14 am    Post subject: Reply with quote

that's the problem.. editing or browsing a sysout on SDSF we don't have an specific name only a temporary name.... also i would like to make this as a portable exec, i mean.. no matter in what datataset i'm editing i would be able to capture the content and process the data... is this possible ? is my question clear ?
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Wed Jul 18, 2007 11:21 am    Post subject: Reply with quote

what do you want to do with the Edit Macro? What do you want to do with the data within the dataset?

If you edit (or view) a dataset, then enter the <edit macro name> on the command line of the edit/view panel, the edit macro will execute.

what is it that you want to do with the macro?
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
expat
Intermediate


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Wed Jul 18, 2007 11:38 am    Post subject: Reply with quote

You will need to copy the sysout to a dataset, using SDSF. This has been discussed on this forum quite a few times so should be relatively easy to find, in fact I have answered two or three questions about this.

Once the sysout is in a dataset it will be just like any other dataset to edit.
_________________
If it's true that we are here to help others,
then what exactly are the others here for ?
Back to top
View user's profile Send private message
s_shivaraj
Beginner


Joined: 21 Sep 2004
Posts: 140
Topics: 14
Location: Chennai, India

PostPosted: Wed Jul 18, 2007 1:24 pm    Post subject: Reply with quote

cyberuser,

Try this, it will help you. If this doesnt work. Let me know.

Keep the cursor at the first position and start reading every Line.

You can get the content of that Line using the LINE Command. Increment the cursor position till the end.
Code:

"ISREDIT  CURSOR = .ZFIRST"   
"(WrkLine) = LINE .ZCSR"       
"(HERE) = LINENUM .ZCSR"     

Put the Below logic in a loop and read all the Lines..
Code:

{
HERE = HERE + 1
"CURSOR =" HERE  "1"   
"(WrkLine) = LINE .ZCSR"       
}

Hope the info. will help you
_________________
Cheers
Sivaraj S

'Technical Skill is the Master of complexity, while Creativity is the Master of Simplicity'
Back to top
View user's profile Send private message AIM Address
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Wed Jul 18, 2007 2:36 pm    Post subject: Reply with quote

cyberuser,

You can't run an edit macro in BROWSE.

You can not modify an SDSF file and then save it in SDSF.- you can copy the file to DASD, and work there.

You can edit an sdsf file, modifying the current EDIT/VIEW session, and then Create a new/Replace an existing DASD DS - thus saving your results.

You still have not answered the question: What do you want to do?

s_shivaraj,

Why bother to use an edit macro to copy an sdsf file to dasd when you can use SDSF commands to perform the function easier?
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
cyberuser
Beginner


Joined: 15 Oct 2005
Posts: 29
Topics: 12

PostPosted: Wed Jul 18, 2007 7:50 pm    Post subject: Reply with quote

thanks for all replies. i'll try s_shivaraj suggestion and let you know.

dbzTHEdinosauer: i need to work online 5000 lines... further save will not be required.
but the problem is that syosout may be on sdsf or dataset.
Back to top
View user's profile Send private message
expat
Intermediate


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Sat Jul 21, 2007 8:36 am    Post subject: Reply with quote

Quote:
but the problem is that syosout may be on sdsf or dataset.

What do mean that the sysout may be in a dataset. You may be accessing the spool which has been dumped off - usually a daily task.

As Dick has said, you must copy the sysout to DASD to be able to edit it. And you can not replace the original spool data with modified data.
_________________
If it's true that we are here to help others,
then what exactly are the others here for ?
Back to top
View user's profile Send private message
cyberuser
Beginner


Joined: 15 Oct 2005
Posts: 29
Topics: 12

PostPosted: Sun Jul 22, 2007 11:08 am    Post subject: Reply with quote

Agree with you expat, we can't modify the spool.
What i meant saying "the syosout may be on sdsf or dataset" is that i'm looking for a way to make an exec tool portable. I can use on sdsf on 3.4 etc...
for this i need to read the opened data and "ask" to my tool to process it.... the sysout can be moved the executor's hlq...
thinking better.. in other words would be an automated way to call: xdc (when applicable) or read data in 3.4 + rexx processing + sysout (may be stored on hlq or only displayed on temp file to user) by the command line....
too much ?!?! i mean.. any comments for each one of these "steps" would be very appreciated !!! thanks for your attention...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group