View previous topic :: View next topic
|
Author |
Message |
Siddharth4v
New User
Joined: 20 Aug 2008 Posts: 7 Location: India
|
|
|
|
Hi,
Could anyone help me with reading a dataset whose RECFM=U, from a REXX program. It says the EXECIO command can be used only on datasets with Fixed or Variable record format. It cannot be used on datasets with RECFM=U. Is there a solution for this? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Nope |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
other than the REXX script CALLing a program (that supports U Recfm) to accomplish the reads and return the record to the script.
But then, why use REXX? |
|
Back to top |
|
|
Siddharth4v
New User
Joined: 20 Aug 2008 Posts: 7 Location: India
|
|
|
|
My exact requirement is to check if the dataset has a given string or not. I tried using the ISREDIT command "FIND". If we use FIND on the editor, it works. But if used inside a REXX program and executed as a macro, it does not. What happens when i try to open the dataset in edit mode is, it automatically substitutes it with Browse mode. I think that is the reason why it is not executing the ISREDIT commands.
If the same can be done without using REXX, kindly tell me how I can proceed with that? |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
what is this file? SMF?, OBJECT? there are few types of datasets that are recfm=U.
you are correct, EDIT MACROs do not work in BROWSE mode.
but if you can browse the file, do a FIND from the command line.
you only mentioned on file, so why try to automate something for 1 file?
again, what is this dataset used for?
also, try using VIEW. Is this a large dataset? |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Quote: |
My exact requirement is to check if the dataset has a given string or not. |
If you are searching for text, why not use the SRCHFOR utility of ISPF? I just tried it: it seems to handle load module datasets. |
|
Back to top |
|
|
Siddharth4v
New User
Joined: 20 Aug 2008 Posts: 7 Location: India
|
|
|
|
The different version of program will have different Level number. So, to find which version is in use, we need to open the program (load-module) and search for/find the level number inside the load-module.
Now we got a requirement to find the version of some 200 programs. We don’t want to do this manually. That’s why I tried to write a Rexx program. |
|
Back to top |
|
|
Bill Dennis
Active Member
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
|
|
Siddharth,
Did you see Pedro's post? Generate batch JCL from 3.14 to search your library. Parse the output file to get the list of programs. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
SRCHFOR will search for specific text and show you the line the has it. Perhaps search for the must current level and then 'fix' any members not at that level. But why do you need to know which are back level? Just replace all with the most current versions.
And if these 200 programs are related, I further suggest that you re-compile all 200 programs to make sure they all use the same level of control blocks. |
|
Back to top |
|
|
Siddharth4v
New User
Joined: 20 Aug 2008 Posts: 7 Location: India
|
|
|
|
Thank you for your suggestions. I'll try out what you've suggested. |
|
Back to top |
|
|
|