Outfil outrec

In this Mainframe Forum - You can post your queries on DFSORT, ICETOOL , SyncSort & JCL Utilities

Moderators: Frank Yaeger, Moderator Group

Post Reply
Posts: 6
Joined: Wed Jun 27, 2007 5:02 pm

Outfil outrec

Post by govardhan » Tue Aug 07, 2007 2:14 pm

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

User avatar
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Tue Aug 07, 2007 2:59 pm

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
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

Posts: 111
Joined: Wed Feb 22, 2006 2:59 pm

Post by Veera » Mon Aug 20, 2007 7:56 pm


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: Select all

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.


Post Reply


Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Mainframe Interview questions

Other References
Mainframe Tools and others