IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

INSYNC utility via JCL


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Sudhanshu Shekhar

New User


Joined: 23 Jul 2008
Posts: 27
Location: City of Joy

PostPosted: Mon Dec 14, 2009 4:54 pm
Reply with quote

Hi,

We have a utility in INSYNC to convert FB files to CSV format, i want to know how to incorporate that in a JCL? Currently we write a cobol program to do the same, so was trying to reduce effort and use an inbuilt utility.

Shekhar
Back to top
View user's profile Send private message
Sudhanshu Shekhar

New User


Joined: 23 Jul 2008
Posts: 27
Location: City of Joy

PostPosted: Mon Dec 14, 2009 5:06 pm
Reply with quote

I have found many examples so far, where you can delimit with "," using DFsort. But wat i am looking for is a utility that will delimit based on a copybook to create a .CSV.....
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Dec 14, 2009 8:15 pm
Reply with quote

Hello,

How do you use it now? Suggest the same control information will be used in batch. The documentation should show the necessary jcl or you might talk with someone who is responsible for support of INSYNC.

If all else fails, you might look in the product documentation. . .
Back to top
View user's profile Send private message
Sudhanshu Shekhar

New User


Joined: 23 Jul 2008
Posts: 27
Location: City of Joy

PostPosted: Wed Dec 16, 2009 2:59 pm
Reply with quote

Thanks Dick,

I finally found the way to do it.... hewre is how

Code:

//STEP1    EXEC PGM=INSYNC,PARM=MVS,REGION=??           
//STEPLIB  DD DISP=SHR,DSN=SYS1.M4.INSYNC.LOADLIB       
//*                                                     
//#ELIBDD  DD DISP=SHR,DSN=SYS1.M4.INSYNC.ELIB         
//SYSTSPRT DD SYSOUT=*                                 
//#LOG     DD SYSOUT=*                                 
//#PRINT   DD SYSOUT=*                                 
//#STATS   DD SYSOUT=*                                 
//#INDD    DD DSN=IN.FILE,DISP=SHR
//#OUTDD   DD DSN=OUT.FILE,DISP=SHR
//#PARM    DD *                                         
FUNCTION=EXTRACT                                       
INDD=#INDD                                             
OUTDD=#OUTDD                                           
RDW=ON                                                 
REPLACEDUPS=NO                                         
CSVDELIM=,                                             
CSVQUOTE=SINGLE                                         
CSVQUOTECHARS=NO                                       
CSVQUOTENUMS=NO                                         
CSVLEADINGBLANKS=NO                                     
CSVTRAILINGBLANKS=NO                                   
CSVLEADINGZEROS=NO                                     
CSVEXCLUDEFILLER=NO                                     
CSVINCLUDEHEADER=YES                                   
ADDTOOUTPUT=NO                                         
LINESPERPAGE=080                                       
FORMATDSN=(LAYOUT.COPYLIB)               
FORMATMBR=(TEST)
//*
[/quote]
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Dec 16, 2009 9:46 pm
Reply with quote

Good to hear it is working - thank you for letting us know your solution icon_smile.gif

d
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts REASON 00D70014 in load utility DB2 6
No new posts ISRSUPC search utility - using high l... TSO/ISPF 2
No new posts INSYNC option with same function as I... JCL & VSAM 0
No new posts Any JCL or VSAM Utility to get number... JCL & VSAM 1
No new posts DATA SET LIST UTILITY screen TSO/ISPF 6
Search our Forums:

Back to Top