Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

PL/I Builtin

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
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    Post subject: PL/I Builtin
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: 1738
Location: Bloomington, IL

PostPosted: Mon Sep 17, 2012 8:04 pm    Post subject: Re: PL/I Builtin
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

Site Director


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

PostPosted: Mon Sep 17, 2012 10:10 pm    Post subject:
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    Post subject:
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: 1712
Location: UK

PostPosted: Tue Sep 18, 2012 12:04 pm    Post subject:
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    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7223

PostPosted: Tue Sep 18, 2012 12:19 pm    Post subject: Reply to: PL/I Builtin
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: 1712
Location: UK

PostPosted: Tue Sep 18, 2012 2:09 pm    Post subject:
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

Site Director


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

PostPosted: Tue Sep 18, 2012 11:57 pm    Post subject:
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: 1738
Location: Bloomington, IL

PostPosted: Wed Sep 19, 2012 12:33 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts An RFE for a not even available PL/I ... prino PL/I & Assembler 3 Tue Oct 20, 2015 12:25 am
No new posts DB2 V10 upgrade - DATETIME builtin fu... yogi.47eie DB2 2 Sat Jul 13, 2013 11:10 am
No new posts PL/I builtin function DATETIME ramsri PL/I & Assembler 13 Wed Feb 08, 2012 11:43 pm
No new posts PL1 - Need to change all occurences o... don.leahy PL/I & Assembler 22 Wed Feb 16, 2011 10:41 am
No new posts Builtin in PL/1 for last non-blank ch... enrico-sorichetti PL/I & Assembler 6 Thu Jan 28, 2010 9:03 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us