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

F,FA,FB,FBA,FS,FBS,FBSA,FSA,U,V,VA,VB,VBA,VBS,VBSA,VS,VSA


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sivapriya123

New User


Joined: 01 Jun 2023
Posts: 3
Location: United Kingdom

PostPosted: Fri Jun 02, 2023 2:54 am
Reply with quote

Hello all,

I need to write cobol programs that to process all types of RECFM for our testing.
Just a simple program read the file and write to the same format file.

F to F

FA to FA

VS to VS

VSA to VSA

I wrote now 2 programs.
1st one will handle RECFM=F,FB,FS and FBS
2nd one will handle V and VB
Any suggestions for the program to support all other types.
How many in total required? can it be handled in 3 programs?
Any advise would be appreciated.
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2012
Location: USA

PostPosted: Fri Jun 02, 2023 3:54 am
Reply with quote

Use IEBGENER, DFSORT/SYNCSORT, FILEAID, etc.
Back to top
View user's profile Send private message
sivapriya123

New User


Joined: 01 Jun 2023
Posts: 3
Location: United Kingdom

PostPosted: Fri Jun 02, 2023 3:31 pm
Reply with quote

JCL's were already defined by applications and I can't change the format in the JCL.

I should prcoess these types of files in the COBOL program.
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2012
Location: USA

PostPosted: Fri Jun 02, 2023 5:19 pm
Reply with quote

sivapriya123 wrote:
JCL's were already defined by applications and I can't change the format in the JCL.

I should prcoess these types of files in the COBOL program.

Good luck in re-inventing the wheel! 824.gif icon_pai.gif
Back to top
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1231
Location: Bamberg, Germany

PostPosted: Fri Jun 02, 2023 5:23 pm
Reply with quote

Do not forget about the extended formats of the aforementioned RECFMs.
Back to top
View user's profile Send private message
sivapriya123

New User


Joined: 01 Jun 2023
Posts: 3
Location: United Kingdom

PostPosted: Fri Jun 02, 2023 6:11 pm
Reply with quote

I am able to work on the Cobol programs for the most of the types. I am struggling on just below types.
Type RECL BLKSIZE
VBS 124 84
VS 124 88
VBSA 125 84
VSA 125 89
U 0 80
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 -> COBOL Programming

 


Search our Forums:

Back to Top