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 Profile Log in to check your private messages Log in
 
can some one explain the below code...

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
ram_vizag

New User


Joined: 21 Aug 2008
Posts: 94
Location: hyd

PostPosted: Thu Aug 22, 2013 4:35 pm    Post subject: can some one explain the below code...
Reply with quote

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

Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1542
Location: Andromeda Galaxy

PostPosted: Thu Aug 22, 2013 4:37 pm    Post subject:
Reply with quote

Did you check the File manager manual?
Back to top
View user's profile Send private message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Thu Aug 22, 2013 6:38 pm    Post subject:
Reply with quote

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
View user's profile Send private message
ram_vizag

New User


Joined: 21 Aug 2008
Posts: 94
Location: hyd

PostPosted: Fri Aug 23, 2013 12:12 pm    Post subject: Thanks a lot...
Reply with quote

hi all,

i could understand from the manual of filemanager...Thanks a lot...
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. how to code for GDG in Rexx cvnlynn CLIST & REXX 13 Wed Aug 09, 2017 9:13 pm
This topic is locked: you cannot edit posts or make replies. rexx code to create a ps file Bharath Vikraman CLIST & REXX 4 Mon Aug 07, 2017 10:30 am
No new posts I want to retire TRX and use only Rex... Abhinav Sharma CLIST & REXX 6 Sat Jul 29, 2017 2:53 am
No new posts UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm
No new posts DB2 Program abending without giving a... rahulgarg14 DB2 7 Mon May 29, 2017 8:10 pm

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