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 

updating Binary values in a file

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
mfuser
Banned


Joined: 01 Mar 2005
Posts: 105
Topics: 58

PostPosted: Sun Jul 09, 2006 1:21 am    Post subject: updating Binary values in a file Reply with quote

Members,

I have a File in which there are two fields with BI format .To know the exact value in ZD i use the below JCL:
Code:

//SYSIN    DD *                 
   OPTION COPY                   
   OUTREC FIELDS=(1,49,X,       
                  50,2,BI,TO=ZD,X,
                  52,2,BI,TO=ZD) 
/*

I get the output below as for the two Binary fields:
Code:

00000 00000
00000 00000
00000 00000
00000 00000
00000 00000
00000 00000
00000 00000
00000 00000

If i want to update the File with the intention of having Binary values to get the ouput in ZD values as below :
Code:

00000 00270
00000 00270
00000 00270
00000 00270
00000 00270
00000 00270
00000 00270
00000 00270

What should be the JCL ? Can anybody help me out in the problem ?
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12385
Topics: 75
Location: San Jose

PostPosted: Sun Jul 09, 2006 5:41 am    Post subject: Reply with quote

mfuser,

Try this

Code:

//SYSIN    DD *                         
 SORT FIELDS=COPY                       
 OUTREC OVERLAY=(52:+270,TO=BI,LENGTH=2) 
/*               


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities 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