Iebgener or Syncsort

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

Moderators: Frank Yaeger, Moderator Group

Post Reply
jackie
Member
Posts: 3
Joined: Fri Dec 29, 2006 5:30 pm
Location: Israel

Iebgener or Syncsort

Post by jackie » Fri Dec 29, 2006 5:51 pm

Hi to all

I'll describe my situation first:

I work batch.
Every night I get a file that copied from some open enviroment server to MF.
The file is sequential and of variable length(VB).
The LRECL is every time different, with maximum of 400.

The COBOL program that processes the file gets the fixed length(FB) file as an input.
I am trying to convert the file I get(VB) to fixed length(FB) file.

I tried IEBGener, but I get "Conflicting DCB Parameters" messege.
I tried Syncsort but got ABEND 016 with message of same sense.

Maybe there is some parameter in Syncsort or in Iebgener or any other utility that I can use to solve the situation?
I remind you that I work batch.
Thanks
Jack

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

File conversion VB TO FB using ICETOOL.

Post by Veera » Thu Jan 04, 2007 4:41 am

Hi

What i understand from your query is

I am trying to convert the file I get(VB) to fixed length(FB) file

We can convert a file from VB TO FB using ICETOOL.

Find below the code for the same.

//SORTTEST JOB (,),'SORT FILE',MSGCLASS=T,
// CLASS=S, NOTIFY=&SYSUID
//STEP0001 EXEC PGM=ICETOOL
//DFSMSG DD SYSOUT=*
//TOOLMSG DD SYSOUT=*
//TOOLIN DD *
COPY FROM (IN1) TO (OUT) USING (ICE0)
//IN1 DD DSN=Input file, DISP=SHR
//OUT DD DSN=Outfile,
// DISP=(NEW,CATLG,CATLG),
// UNIT=SYSDA,
// SPACE=(TRK,(1,1),RLSE),
// DCB=(RECFM=FB,LRECL=9)
//*
//ICE0CNTL DD *
OUTFIL FNAMES=OUT, VTOF,
OUTREC=(1:5,9)

Note : Here i have used outrec as per my requiremnt , we can change as per our requirement.

Thanks
Veera.

Post Reply

FREE TUTORIALS

Tutorials
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.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others