IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

PL/I Builtin


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
checky76

New User


Joined: 13 Oct 2007
Posts: 10
Location: Vienna

PostPosted: Mon Sep 17, 2012 7:25 pm
Reply with quote

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
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Mon Sep 17, 2012 8:04 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Sep 17, 2012 10:10 pm
Reply with quote

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
View user's profile Send private message
checky76

New User


Joined: 13 Oct 2007
Posts: 10
Location: Vienna

PostPosted: Tue Sep 18, 2012 11:32 am
Reply with quote

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
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Tue Sep 18, 2012 12:04 pm
Reply with quote

Very simple in PL/1. Sort can do it as well, I guess.
Back to top
View user's profile Send private message
checky76

New User


Joined: 13 Oct 2007
Posts: 10
Location: Vienna

PostPosted: Tue Sep 18, 2012 12:16 pm
Reply with quote

i favourite the pl/i solution


did you know the builtin function to know the length of the field ?

regards
christian
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Tue Sep 18, 2012 12:19 pm
Reply with quote

It's called "counting" and it comes up with seven.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Tue Sep 18, 2012 2:09 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Sep 18, 2012 11:57 pm
Reply with quote

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
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Wed Sep 19, 2012 12:33 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts An RFE for a not even available PL/I ... PL/I & Assembler 3
No new posts DB2 V10 upgrade - DATETIME builtin fu... DB2 2
No new posts PL/I builtin function DATETIME PL/I & Assembler 13
No new posts PL1 - Need to change all occurences o... PL/I & Assembler 22
No new posts Builtin in PL/1 for last non-blank ch... PL/I & Assembler 6
Search our Forums:

Back to Top