MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Design the format for an output file I\in REXX ?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
debashish_hota
Beginner


Joined: 17 May 2006
Posts: 3
Topics: 2
Location: India

PostPosted: Wed May 17, 2006 4:10 am    Post subject: Design the format for an output file I\in REXX ? Reply with quote

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
View user's profile Send private message Yahoo Messenger
shekar123
Advanced


Joined: 22 Jul 2005
Posts: 528
Topics: 90
Location: Bangalore India

PostPosted: Wed May 17, 2006 6:35 am    Post subject: Reply with quote

debashish_hota,

Please post us what your requirements are clearly so that members can reply to your post.
_________________
Shekar
Grow Technically
Back to top
View user's profile Send private message
debashish_hota
Beginner


Joined: 17 May 2006
Posts: 3
Topics: 2
Location: India

PostPosted: Wed May 17, 2006 8:49 am    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Wed May 17, 2006 9:28 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
moyeenkhan
Beginner


Joined: 04 Dec 2002
Posts: 64
Topics: 21

PostPosted: Wed May 17, 2006 2:39 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group