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
 

 

for readin from a file till particular location

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
scorp_rahul22
Currently Banned

New User


Joined: 06 Aug 2007
Posts: 42
Location: chennai

PostPosted: Tue Dec 11, 2007 2:08 pm    Post subject: for readin from a file till particular location
Reply with quote

i have written code in rexx to read contents of a file from 1 to 38 character and that field to be name of datset , i want to open that dataset to read all the members which are inside that and write in output file.

i am not getting what to do after this
Code:

/*REXX*/                                                       
"EXECIO * DISKR INDD (FINIS STEM SRC."                               
DO CNT = 1 TO SRC.0                                                     
  PARSE VAR SRC.CNT 5 FIRST 8 13 SECOND 38 THIRD                 
  SAY THIRD           
END
EXIT
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Tue Dec 11, 2007 4:21 pm    Post subject: Reply to: for readin from a file till particular location
Reply with quote

So the variable "THIRD" contains the name of a PDS? And then you say you want to "read all the members which are inside that and write in output file". How do you plan to determine what all the member names are?
Back to top
View user's profile Send private message
vasanthkumarhb

Active User


Joined: 06 Sep 2007
Posts: 276
Location: Bang,iflex

PostPosted: Tue Dec 11, 2007 4:25 pm    Post subject:
Reply with quote

Quote:
i have written code in rexx to read contents of a file from 1 to 38 character and that field to be name of datset , i want to open that dataset to read all the members which are inside that and write in output file.


Your intention is not clear, please specify your question clearly.
Back to top
View user's profile Send private message
kavikesav

New User


Joined: 22 Mar 2007
Posts: 21
Location: chennai

PostPosted: Tue Dec 11, 2007 5:26 pm    Post subject:
Reply with quote

to list the members in the dataset u can use the listds command
but y u r splitting the dataset name to somany things u can take the first 38 characters and store it in a variable name and then using the syntax

"listds ('"var"') members"

then proceed
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm


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