read a pds file and create varibles in rexx



IBM's Command List programming language & Restructured Extended Executor

read a pds file and create varibles in rexx

Postby JRIVERA » Wed Jul 08, 2009 8:33 pm

I have a pds file and want to read it and break data up into variables using rexx any one have ideas or atleast send me in the right direction.
Jrivera:

Thanks for your help and suggestions.
JRIVERA
 
Posts: 16
Joined: Thu Jun 04, 2009 12:57 am
Has thanked: 0 time
Been thanked: 0 time

Re: read a pds file and create varibles in rexx

Postby MrSpock » Wed Jul 08, 2009 9:38 pm

User avatar
MrSpock
Global moderator
 
Posts: 807
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times

Re: read a pds file and create varibles in rexx

Postby JRIVERA » Thu Jul 09, 2009 12:44 am

ok was reading up on that maybe im just confused.

what i want to do is read in a pds that has lines of data and each observation or line has 20 colums i want to be able to tell rexx that the first colum in the first line should have this in this format and so fourth all the way down the line then put that data on another line in another data set. also there are mutiple lines of data which has the same exact data in some colums. example

SYS TYPE REPORT ACCT TRAN 200905 200906 200907
I.D. TASK CLASS WORKLOAD APPL ID CODE PREF ####.# ####.# ####.#
---- ---- -------- -------- -------- ---- ---- ------ ------ ------
xxxx JOB BATCH xxxx_B RODE_PC 035 0.0 0.0 3.0
xxxx JOB BATCH xxxx_B RODE_PC 035 0.0 0.0 10.0
xxxx JOB BATCH xxxx_B RODE_PC 035 0.0 0.0 3.0
xxxx JOB BATCH xxxx_B xxxxx_PC 035 100.0 0.0 3.0
Jrivera:

Thanks for your help and suggestions.
JRIVERA
 
Posts: 16
Joined: Thu Jun 04, 2009 12:57 am
Has thanked: 0 time
Been thanked: 0 time

Re: read a pds file and create varibles in rexx

Postby dick scherrer » Thu Jul 09, 2009 1:36 am

Hello,

So, this really has nothing specific to do with a pds? This could just as well be a simple sequential file?

i want to be able to tell rexx that the first colum in the first line should have this in this format
What does this mean?

Keep in mind that what you "have" and what want to do is completely clear to you, but may not be to others.

If that is the input, what should be the output?

What are the "rules" for getting from the input to the output?
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: read a pds file and create varibles in rexx

Postby JRIVERA » Thu Jul 09, 2009 2:28 am

ok i have a supec rexx program that compares the changes from two files and then i want to be able to add the changes to the original file so if someone changes info on any given line or colum or delets a line i want to be able to add those changes to the original file.

and the next step is to have error checking code that checks for errors for each colum. thats what i meant about the format.

like in line one first varible should have a format standard of AB12345 meaning 1st two are charaters and the last 5 will be numeric.
Jrivera:

Thanks for your help and suggestions.
JRIVERA
 
Posts: 16
Joined: Thu Jun 04, 2009 12:57 am
Has thanked: 0 time
Been thanked: 0 time


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post