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

FB to FBA Conversion


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

New User


Joined: 22 Nov 2005
Posts: 24

PostPosted: Wed Nov 19, 2008 10:10 am
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: 1702
Location: Australia

PostPosted: Wed Nov 19, 2008 10:18 am
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

Moderator Emeritus


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

PostPosted: Wed Nov 19, 2008 10:30 am
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: 24

PostPosted: Wed Nov 19, 2008 10:37 am
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: 1702
Location: Australia

PostPosted: Wed Nov 19, 2008 11:30 am
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

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Wed Nov 19, 2008 11:46 am
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: 24

PostPosted: Wed Nov 19, 2008 3:26 pm
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: 1702
Location: Australia

PostPosted: Wed Nov 19, 2008 4:11 pm
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: 2481
Location: @my desk

PostPosted: Wed Nov 19, 2008 4:14 pm
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: 24

PostPosted: Wed Nov 19, 2008 4:26 pm
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: 2481
Location: @my desk

PostPosted: Wed Nov 19, 2008 4:31 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts 10 byte RBA conversion DB2 2
No new posts 10 byte RBA conversion -non applicati... JCL & VSAM 1
No new posts file manager is doing string conversion IBM Tools 3
No new posts SMF Record Date conversion failing CLIST & REXX 1
No new posts Assembler class assignment: stuck on ... PL/I & Assembler 12
Search our Forums:

Back to Top