Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
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
 
Working with hex values in Filemanager batch job

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IBM Tools
View previous topic :: :: View next topic  
Author Message
Emile Straker

New User


Joined: 27 Mar 2013
Posts: 1
Location: United Kingdom

PostPosted: Tue Sep 12, 2017 1:42 am    Post subject: Working with hex values in Filemanager batch job
Reply with quote

Hi,

I'm trying to do a simple find & replace of a field using the following:

Code:

££FILEM DSU INPUT=DD01,       
££FILEM     PROC=*             
IF FLD(269,9) ¬= '         ' &,
   FLD(269,9) ¬= '000000000'
THEN DO               
  OVLY_OUT('123456789',269) 
  RETURN
END
               


As well as spaces and zeros, the field above can contain x'000000000000000000'

I also want to ignore the field if it is all hex zeros.

The manual advised there are additional operators for Binary, Packed Decimal & Zoned Decimal, but I can't get the result I'm after.

Any help would be greatly appreciated.
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 -> IBM Tools All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts LIBDEF not working in called proc packerm CLIST & REXX 0 Fri Sep 15, 2017 7:22 pm
No new posts Generate public-private key in batch ... vasanthz All Other Mainframe Topics 3 Fri Sep 15, 2017 9:20 am
No new posts DB2 NULL Values display V S Amarendra Reddy DB2 3 Thu Sep 07, 2017 6:59 pm
No new posts Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm
No new posts ISREDIT MACRO NOT WORKING! :cry: kirank889 TSO/ISPF 3 Thu Aug 03, 2017 5:46 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us