View previous topic :: View next topic
|
Author |
Message |
checky76
New User
Joined: 13 Oct 2007 Posts: 10 Location: Vienna
|
|
|
|
Hi, i have a dataset (VBA 133) and need a builtin function to find a special keyword ( in this case a bracket because here starts the membername).
Has anyone an idea.
Or does anyone knows an better way to generate the membernames of an pds library.
regards
christian |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
checky76 wrote: |
Hi, i have a dataset (VBA 133) and need a builtin function to find a special keyword ( in this case a bracket because here starts the membername).
Has anyone an idea. |
INDEX
Quote: |
Or does anyone knows an better way to generate the membernames of an pds library. |
From what and for what? Note that PL/I does not give you anything like the STOW macro. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
If you post what the real goal is (rather than asking about the mechanics to find/use a member name, you may get some suggestions.
It is not clear what you will have when your process is working. |
|
Back to top |
|
|
checky76
New User
Joined: 13 Oct 2007 Posts: 10 Location: Vienna
|
|
|
|
here what i have to do
have an sequential file (a listds)
Datasetname
Member1
Member2
Member3
.............
Have to generate a put command for every member
PUT 'DATASETNAME(Member1)' Member1
Can i solve this with PL/I or is Sort a better method to solve this ?
regards
christian |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
Very simple in PL/1. Sort can do it as well, I guess. |
|
Back to top |
|
|
checky76
New User
Joined: 13 Oct 2007 Posts: 10 Location: Vienna
|
|
|
|
i favourite the pl/i solution
did you know the builtin function to know the length of the field ?
regards
christian |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
It's called "counting" and it comes up with seven. |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
Try reading the PL/1 manual. A good place to start is the index where key words are listed in alphabetical sequence. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
i favourite the pl/i solution |
If you are not fluent using pl/i, why favor it?
Is your goal to create a new member for all of the names in the listds dataset?
Is there some reason you have not considered REXX? |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
checky76 wrote: |
did you know the builtin function to know the length of the field ? |
Indeed, I did. Did you know that the length of a fixed-length character field (i.e., one declared without the VARYING attribute) is constant regardless of how many trailing spaces it might contain? |
|
Back to top |
|
|
|