View previous topic :: View next topic
|
Author |
Message |
ram_vizag
Active User
Joined: 21 Aug 2008 Posts: 112 Location: hyd
|
|
|
|
Hi Friends,
I'm doing analysis in jcl,syncsort,rexx...can some one explan the following code:
Code: |
$$FILEM DSC INPUT=DD00,
$$FILEM OUTPUT=DD00O,
$$FILEM PROC=*
CHG_OUT('00'X,'40'X,0,1)
|
I CAN UNDERSTAND that low-values are being converted to spaces but what does 0,1 do in the above code....Could you please expalin |
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
Did you check the File manager manual? |
|
Back to top |
|
|
Ed Goodman
Active Member
Joined: 08 Jun 2011 Posts: 556 Location: USA
|
|
|
|
From my manual, those are 'count' and 'start' parms.
0 for count means 'change all', 1 for start means start at the beginning of the record.
CHG_OUT is described in the "External REXX Functions" in the "Functions" chapter.
Not sure which version of FileManager you have, but the books are on the IBM website.
What's really happening there is that a record is being read, then a rexx is being called for each record. the rexx is defined instream (PROC=*). The only line of the rexx is "chg_out..." That rexx function does the work of the replacing, the output record then gets copied to the output DD.
You can do a LOT of stuff with FileManager, and the more I use it, the more I learn. This concept of running a rexx on each record took me a while to understand though. |
|
Back to top |
|
|
ram_vizag
Active User
Joined: 21 Aug 2008 Posts: 112 Location: hyd
|
|
|
|
hi all,
i could understand from the manual of filemanager...Thanks a lot... |
|
Back to top |
|
|
|