GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  Mainframe  >  JCL
Go To First  |  Previous Question  |  Next Question 
 JCL  |  Question 38 of 126    Print  
How do you convert negative packed decimal number to positive PD using JCL?

  
Total Answers and Comments: 3 Last Update: September 01, 2008     Asked by: Ratan 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
March 18, 2006 19:46:41   #1  
Culver_lake Member Since: March 2006   Contribution: 46    

RE: how do you convert negative packed decimal number ...
JCL is not a programming language, it's a script language for executing programs and defining data that programs use. Write a COBOL program to multiply the negative numbers by -1. Then use JCL to execute the program.
 
Is this answer useful? Yes | No
July 12, 2006 05:13:01   #2  
Rajeev Gupta        

RE: how do you convert negative packed decimal number ...

There is no provision in JCL to convert the sign, but you can write a sort step to change the sign and this sort step can be run in a JCL. What you would have to do to change the sign is to change the last byte of the packed decimal field from 'XC' to 'XD', where X is a given number varying from 0 to 9.


 
Is this answer useful? Yes | No
September 01, 2008 02:19:40   #3  
prasenjit_in Member Since: April 2008   Contribution: 18    

RE: How do you convert negative packed decimal number to positive PD using JCL?
You can use the edit mask provided by DFSORT.

OUTREC FIELDS=(24,7,PD,EDIT=(T TTT TTT),SIGNS=( ,+))

Hope that this is what you were looking for.

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape