Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Convert FB file to FBA format using SYNCSORT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
gprerna

New User


Joined: 21 Mar 2007
Posts: 38
Location: US

PostPosted: Wed May 02, 2007 8:31 pm    Post subject: Convert FB file to FBA format using SYNCSORT
Reply with quote

Hi,

I have a requirement to convert a FB file to FBA format. Please let me know how we can do this using SYNCSORT.

LRECL of FB file = 30
LRECL of FBA file = 133

Also, is it neccessary that LRECL of FBA can be only 133 bytes?

Thanks!
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Wed May 02, 2007 8:55 pm    Post subject: Re: Convert FB file to FBA format
Reply with quote

gprerna wrote:
... is it neccessary that LRECL of FBA can be only 133 bytes?


No, there is no such restriction. If it can be defined as FB, it can be defined as FBA.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Wed May 02, 2007 9:01 pm    Post subject:
Reply with quote

gprerna,

Here's a DFSORT job that will do what you asked for. It puts a blank in positon 1 for the carriage control character, then copies the 30 input bytes and then blanks the rest of the record up to position 133.

Code:

//S1    EXEC  PGM=ICEMAN
//SYSOUT    DD  SYSOUT=*
//SORTIN DD DSN=...  input file (FB/30)
//SORTOUT DD RECFM=FBA,DSN=...  output file (FBA/133)
//SYSIN    DD    *
  OPTION COPY
  INREC BUILD=(X,1,30,133:X)
/*
Back to top
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Thu May 03, 2007 12:00 am    Post subject:
Reply with quote

Hello,

For this
Quote:
Also, is it neccessary that LRECL of FBA can be only 133 bytes?

No, but 133 is the typical length of "regular" printed output. If you have a wider need or if you print landscape you may want a longer or shorter lrecl.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu May 03, 2007 3:01 pm    Post subject:
Reply with quote

What are the criteria for page splits and line spacings ?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Format issues using XMITIP MSGDD ssdjp1 CLIST & REXX 3 Mon Oct 23, 2017 8:47 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us