Home      Mainframe Forum      Mainfarme Tutorials      IBM Manuals      Mainframe Interview Questions      Mainframe Books      IT News     SiteMap     Downloads


     
 
MAINFRAME - TIP OF THE DAY : programming pearls - The fastest algorithm can frequently be replaced by one that is almost as fast and much easier to understand.

Google
 
Web mainframegurukul.com

Welcome to the mainframegurukul forums.

You are currently viewing our mainframe forums as a guest which gives you limited access to view most discussions, articles. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support at admin@mainframegurukul.com


Outfil outrec

 
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> DFSORT , ICETOOL & Utilities
  View previous topic :: View next topic  
Author Message
govardhan
Member


Joined: 27 Jun 2007
Posts: 6

PostPosted: Tue Aug 07, 2007 2:14 pm    Post subject: Outfil outrec Reply with quote

Hi,
i have a input file with couple of fields in numeric (Packed decimal), my work is to copy some of the fields from input file to output file.
My problem is some of the fields from input file which are in PD decimal are copied to output file using outfil outrec but these are not displaying the numbers..instead it is displaying some alphabets like CBAC. hence please help me to how to display the numbers
Back to top
View user's profile Send private message

dbzTHEdinosauer
Moderator


Joined: 02 Oct 2006
Posts: 406

PostPosted: Tue Aug 07, 2007 2:59 pm    Post subject: Reply with quote

pretty hard to suggest changes to your control statements when no one, except you, knows what your control statements are.

post your jcl for the sort with the control cards.
_________________
Dick Brenholtz
American in Varel, Germany
Back to top
View user's profile Send private message
Veera
Moderator


Joined: 22 Feb 2006
Posts: 111

PostPosted: Mon Aug 20, 2007 7:56 pm    Post subject: Reply with quote

Govardhan,

When we have data in PD format obviously we will not be able to see the value of the fields unless we use a copybook with the correct declarations.

But if your question is if you want to convert the data type and copy the data in the readable format in the O/P file then we can use the syntax as below

Example : PD,TO=ZD, Data type conversion

Code:

   OUTFIL FNAMES=TMP,BUILD=(1:1,5,PD,TO=ZD,LENGTH=9)


Its very easy using the DFSORT for converting the data types.

If you have any specific questions FRANK can help us out.

But please show us the exact snapshot of data...postions in the I/P file, LRECL ,

Format of the file and the expected results.

Thanks,
Veera.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> DFSORT , ICETOOL & 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

Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts IAM BEGINNER IN JCL ...PLZ HELP ME 3 Guest 12379 Wed Jul 07, 2010 8:20 am
anilsani285 View latest post
No new posts attributes of one SMS dataset be copied to another dataset ? 1 Krishna 1010 Tue May 12, 2009 6:32 pm
Krishna View latest post
No new posts File-Aid Help 1 Nicholas 8377 Thu Apr 13, 2006 2:12 pm
rangab View latest post
No new posts Search Batch file-aid help 6 frenchman 9142 Tue Mar 28, 2006 5:30 pm
Guest View latest post
No new posts executing java program thru JCL 1 Guest 7517 Fri Mar 17, 2006 10:14 am
arrbee View latest post
 



This widget requires Flash Player 9 or better








Go to top of the page
 

Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  DB2 INTERVIEW QUESTIONS ||  COBOL INTERVIEW QUESTIONS  ||  JCL INTERVIEW QUESTIONS ||  JCL2 INTERVIEW QUESTIONS ||  VSAM INTERVIEW QUESTIONS ||  CICS INTERVIEW QUESTIONS  ||  Online tutorials ||  Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  SiteMap  ||  Expeditor Tutorial  ||  FILE-AID Tutorial  ||  Changeman Tutorial  ||  COBOL   ||  DB2   ||  JCL  ||  CICS  ||  VSAM  ||  DB2 Interview Questions ( 110 )   || Simple JCL Tutorials  || JCL Tutorial from MainframeGurukul.com   || Simple JCL Tutorial - Chapter1 ;|| Mainframe Forum - Tutorials  || Mainframe Tutorials

Drona Educational Forums - Mainframe Cobol DB2 CICS Board
Powered by phpBB