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 

File-AID - Copying the file in txt or doc format

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


Joined: 16 Aug 2004
Posts: 52
Topics: 21
Location: falls church.va,usa

PostPosted: Fri Aug 12, 2005 10:35 am    Post subject: File-AID - Copying the file in txt or doc format Reply with quote

Hi,

When we view a dataset in Format or Vformat we could see the data of comp,comp-3 fields in readable format.

We need to copy that dataset in .txt file or .doc file , so that it should be readable to Business team.

Business team doesn't want screen shots .

Can anyone of you please help me about the same.

Regards,
jayaram
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
kolusu
Site Admin
Site Admin


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

PostPosted: Fri Aug 12, 2005 10:50 am    Post subject: Reply with quote

Jayaram99,



The following JCL prints the file into a readable format.

Code:

//**********************************************************************
//* THE $$DD01 PARAMETER IS ESSENTIAL FOR FILE AID                     *
//* THE DD STATEMENT DD01 = INPUT FILE                                 *
//* THE DD STATEMENT DD01M = COBOL LAYOUT DATA SET NAME                *
//* THE MAP PARAMETER OPTION IS THE MEMBER IN COBOL LAYOUT DSN         *
//* THE OUT PARAMETER SPECIFIES THE NUMBER OF RECORDS THAT YOU NEED    *
//* A VALUE OF 0 MEANS ALL THE RECORDS EXISTING IN THE FILE            *
//* IF YOU SKIP THIS FIELD THE DEFAULT NUMBER OF RECORDS(250) GET      *
//* PRINTED.                                                           *
//* THE DSN IN THE DD STATEMENT SYSLIST IS WHERE THE OUTPUT OF THIS    *
//* JOB GOES                                                           *
//**********************************************************************
//STEP01   EXEC PGM=FILEAID                                           *
//**********************************************************************
//SYSLIST  DD  DSN=Your.output.PRINT,                               
//             DISP=(NEW,CATLG,DELETE),                                 
//             UNIT=PROD,                                               
//             SPACE=(CYL,(x,y),RLSE),                                 
//             DCB=(RECFM=FBA,LRECL=133,BLKSIZE=1330)                   
//SYSUDUMP DD  SYSOUT=*                                                 
//SYSPRINT DD  SYSOUT=*                                                 
//SYSTOTAL DD  SYSOUT=*                                                 
//DD01     DD  DSN=your input dataset,                             
//             DISP=SHR                                                 
//DD01M    DD  DSN=your pds library consisting the layout,
//             DISP=SHR                       
//DD01O    DD  SYSOUT=*                                                 
//SYSIN    DD  *                                                       
$$DD01 FPRINT MAP=your copybook,OUT=0
/*



Alternatively you can use SORT to reformat the comp and comp-3 fields to readable format.

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