View previous topic :: View next topic |
Author |
Message |
debashish_hota Beginner
Joined: 17 May 2006 Posts: 3 Topics: 2 Location: India
|
Posted: Wed May 17, 2006 4:10 am Post subject: Design the format for an output file I\in REXX ? |
|
|
Hi,
I need to get the output file in a required format.
How to go for that in REXX ?
I am new to REXX, can I get any sample code for that ? _________________ DH |
|
Back to top |
|
 |
shekar123 Advanced
Joined: 22 Jul 2005 Posts: 528 Topics: 90 Location: Bangalore India
|
Posted: Wed May 17, 2006 6:35 am Post subject: |
|
|
debashish_hota,
Please post us what your requirements are clearly so that members can reply to your post. _________________ Shekar
Grow Technically |
|
Back to top |
|
 |
debashish_hota Beginner
Joined: 17 May 2006 Posts: 3 Topics: 2 Location: India
|
Posted: Wed May 17, 2006 8:49 am Post subject: |
|
|
Sorry for this.
I want to use an input file containg a list of PDS.
After reading the input file, I need to visit each member of the PDS and check whether it is a JCL or not.
After the check is over, I need to prepare an output file, in a format with fields, PDSname, membername, Flag(whether JCL or not).
Basically I need some idea how to design the output format. _________________ DH |
|
Back to top |
|
 |
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Wed May 17, 2006 9:28 am Post subject: |
|
|
YOu'll need to concatenate the various parts manually using the string functions of Rexx and the concatenation operator (2 vertical bars) or the default of 1 space if you leave off the concatenation operator. The string functions you should look at are right(), left(), copies(), substr(), space(), and strip(). There are many others that are useful, but most formatting can be done with just these. There are also some speciallized formatting functions, but I've rarely seen them used.
If you have ISPF, you could also use file tailoring for this but that can be more trouble than it is worth. |
|
Back to top |
|
 |
moyeenkhan Beginner
Joined: 04 Dec 2002 Posts: 64 Topics: 21
|
Posted: Wed May 17, 2006 2:39 pm Post subject: |
|
|
In Rexx;
1. Read Inputfile using EXECIO *
2. Loop until all Members are read
Read and expand member
Read First Card to see whether JCL
If JCL write output record
Close File
3. CLose All files |
|
Back to top |
|
 |
|
|