Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

FB to FBA Conversion

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

New User


Joined: 22 Nov 2005
Posts: 23

PostPosted: Wed Nov 19, 2008 10:10 am    Post subject: FB to FBA Conversion
Reply with quote

Hi,

I have a file which is of lenght 361. It is in FB format. I used the following
code to change it to FBA. The output file created has FBA format with a space as carriage control character.

Code:

//S1 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=...
//SORTOUT DD RECFM=FBA,DSN=...
//SYSIN DD *
OPTION COPY
INREC BUILD=(X,1,361)
/*


As per my understanding:

Print after advancing one line (single-space).

Question:

Will a header be printed for all pages?
Back to top
View user's profile Send private message

gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Wed Nov 19, 2008 10:18 am    Post subject:
Reply with quote

Hi,

what header ?

A page break will require a 1 in position 1 for each page.



Gerry
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: Wed Nov 19, 2008 10:30 am    Post subject:
Reply with quote

Hello,

Quote:
Will a header be printed for all pages?
Your process does a copy. Headers in the input will be copied to the output. Additional headers will not be added.
Back to top
View user's profile Send private message
nimisanand

New User


Joined: 22 Nov 2005
Posts: 23

PostPosted: Wed Nov 19, 2008 10:37 am    Post subject: Reply to: FB to FBA Conversion
Reply with quote

Hi,

Incase if I require a carriage control character of 1, how can it be acheived?
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Wed Nov 19, 2008 11:30 am    Post subject:
Reply with quote

Hi,

after how many lines is the line break required ?

and do you require a heading ?


Gerry
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10232
Location: italy

PostPosted: Wed Nov 19, 2008 11:46 am    Post subject: Reply to: FB to FBA Conversion
Reply with quote

and, after having converted to FBA on what printer are You going to print it ?
the longest line supported on printers that use the ASA control char is 150
IMWTK (Inquiring Minds Want To Know )
Back to top
View user's profile Send private message
nimisanand

New User


Joined: 22 Nov 2005
Posts: 23

PostPosted: Wed Nov 19, 2008 3:26 pm    Post subject:
Reply with quote

I require a line break after 25 records and the next page needs to have a heading.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Wed Nov 19, 2008 4:11 pm    Post subject:
Reply with quote

Hi,

are you saing the first page does not require a heading ?

Gerry
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2239
Location: @my desk

PostPosted: Wed Nov 19, 2008 4:14 pm    Post subject:
Reply with quote

Hello,

You might want to check this example.
Code:
//STEP01  EXEC PGM=SORT                   
//SYSOUT    DD SYSOUT=*                   
//SORTOUT   DD SYSOUT=*                   
//SORTIN    DD *                         
ABC                                       
ABC                                       
ABC                                       
DEF                                       
DEF                                       
DEF                                       
//SYSIN     DD *                         
 OPTION COPY                             
 OUTFIL HEADER2=(C'HEADER-RECORD'),LINES=4

SORTOUT
Code:
1HEADER-RECORD
 ABC         
 ABC         
 ABC         
1HEADER-RECORD
 DEF         
 DEF         
 DEF         
Back to top
View user's profile Send private message
nimisanand

New User


Joined: 22 Nov 2005
Posts: 23

PostPosted: Wed Nov 19, 2008 4:26 pm    Post subject:
Reply with quote

My header is in another PS file which is concatenated with the records. Instead of HEADER-RECORD, is there an option to give the PS file icon_sad.gif
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2239
Location: @my desk

PostPosted: Wed Nov 19, 2008 4:31 pm    Post subject:
Reply with quote

Quote:
My header is in another PS file
Nimi,

You need to explain further with file positions. Does the header file have only one record? Length of Header? I think it would be better you post some sample data from all the files and the expected output.
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 File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts Conversion of a VB file to FB. isssal DFSORT/ICETOOL 1 Mon Oct 31, 2016 10:23 pm
No new posts EBCDIC to ASCII conversion using OCOPY mistah kurtz All Other Mainframe Topics 5 Tue Sep 06, 2016 2:26 pm
No new posts Comparex utility to Syncsort conversion mistah kurtz SYNCSORT 11 Fri Jul 22, 2016 1:53 pm
No new posts changing z/os unicode conversion service meykh2014 All Other Mainframe Topics 0 Tue Jul 12, 2016 10:49 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us