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

Copy a FBA file to FB file in JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
akshatgarg

New User


Joined: 01 Jul 2005
Posts: 1
Location: Gurgaon,India

PostPosted: Fri Jul 01, 2005 11:29 am
Reply with quote

Hi,
I have a file which is in FBA format 909 bytes. But my application needs the file in FB format 908 bytes. I want to copy the data into the FB file. Can someone please advise?

Thanks,
Akshat
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Fri Jul 01, 2005 3:46 pm
Reply with quote

You failed to mention where the one byte of data is to be removed from - the beginning, the end, or somewhere in the middle. This would be your best option:
Code:

//COPY     EXEC PGM=SORT
//SORTIN   DD DSN=FBA 909 ...
//SORTOUT  DD DSN=FB 908 ...,RECFM=FB
//SYSOUT   DD SYSOUT=*
//SYSIN    DD *
  OPTION COPY
  OUTREC FIELDS=(1:2,908) <= strip first byte
  <or>
  OUTREC FIELDS=(1:1,908) <= strip last byte
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Need help for File Aid JCL to extract... Compuware & Other Tools 23
Search our Forums:

Back to Top