View previous topic :: View next topic |
Author |
Message |
cyberuser Beginner
Joined: 15 Oct 2005 Posts: 29 Topics: 12
|
Posted: Tue Jul 17, 2007 8:05 pm Post subject: READ dataset |
|
|
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 |
|
 |
ofer71 Intermediate
Joined: 12 Feb 2003 Posts: 358 Topics: 4 Location: Israel
|
Posted: Wed Jul 18, 2007 12:31 am Post subject: |
|
|
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 |
|
 |
cyberuser Beginner
Joined: 15 Oct 2005 Posts: 29 Topics: 12
|
Posted: Wed Jul 18, 2007 11:14 am Post subject: |
|
|
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 |
|
 |
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Wed Jul 18, 2007 11:21 am Post subject: |
|
|
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 |
|
 |
expat Intermediate

Joined: 01 Mar 2007 Posts: 475 Topics: 9 Location: Welsh Wales
|
Posted: Wed Jul 18, 2007 11:38 am Post subject: |
|
|
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 |
|
 |
s_shivaraj Beginner

Joined: 21 Sep 2004 Posts: 140 Topics: 14 Location: Chennai, India
|
Posted: Wed Jul 18, 2007 1:24 pm Post subject: |
|
|
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 |
|
 |
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Wed Jul 18, 2007 2:36 pm Post subject: |
|
|
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 |
|
 |
cyberuser Beginner
Joined: 15 Oct 2005 Posts: 29 Topics: 12
|
Posted: Wed Jul 18, 2007 7:50 pm Post subject: |
|
|
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 |
|
 |
expat Intermediate

Joined: 01 Mar 2007 Posts: 475 Topics: 9 Location: Welsh Wales
|
Posted: Sat Jul 21, 2007 8:36 am Post subject: |
|
|
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 |
|
 |
cyberuser Beginner
Joined: 15 Oct 2005 Posts: 29 Topics: 12
|
Posted: Sun Jul 22, 2007 11:08 am Post subject: |
|
|
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 |
|
 |
|
|