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

How to copy FBA-PS-Dataset in VBA-PO-Member


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

New User


Joined: 11 Jan 2006
Posts: 83
Location: Lower Saxony (DE)

PostPosted: Wed Oct 22, 2008 8:25 pm
Reply with quote

Hi there everybody,

it's a long time ago I posted my last question.
But now, I've got a new one..

We have a tool which writes a FBA-Dataset, probably also a FBA-PO-member.
But in the following, I need this output as a VBA-PO-member.

So, does anybody of you have an idea how to realize this?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Oct 22, 2008 9:36 pm
Reply with quote

SORT or REXX are easily capable of converting from FB >> VB >> FB
Back to top
View user's profile Send private message
Auryn

New User


Joined: 11 Jan 2006
Posts: 83
Location: Lower Saxony (DE)

PostPosted: Thu Oct 23, 2008 12:56 pm
Reply with quote

Thanxx for the hint but:
I don't have any experience with REXX nor programming such a routine.
And I tried to 'sort' my dataset but that did not work.
I mean, the dataset does not contain any sort-columns, so there's nothing to sort...

To avoid misunderstanding: My problem is not copying a dataset to a member, my problem is converting RECFM=FBA (LRECL=133) to RECFM=VBA (LRECL=137).

It is not a problem to do this manual by the ISPF-Move/Copy-Utility (3.3) or the Copy-Command when editing the PO-Member. But I'd like to do this automatically. Is there a possibility to execute the ISPF-Move/Copy-Utility from a JCL?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Oct 23, 2008 1:30 pm
Reply with quote

I usually use something like this. It could probably be improved upon, but I have had this for years and years and it always seems to work OK
Code:

//ICEMERGE EXEC PGM=ICETOOL                               
//TOOLMSG  DD SYSOUT=*                                     
//DFSMSG   DD SYSOUT=*                                     
//INFILE   DD DSN=..............DISP=SHR                   
//OUFILE   DD DSN=..............VARIABLE,                 
//            DISP=(,CATLG,DELETE),                       
//            SPACE=(CYL,(10,10),RLSE),RECFM=VB,LRECL=27994
//TOOLIN   DD *                                           
  COPY FROM(INFILE)  TO(OUFILE)  USING(COPY)               
/*                                                         
//COPYCNTL DD *                                           
 OUTFIL FNAMES=OUFILE,FTOV,VLTRIM=C' '                     
/*                                                         
Back to top
View user's profile Send private message
Auryn

New User


Joined: 11 Jan 2006
Posts: 83
Location: Lower Saxony (DE)

PostPosted: Thu Oct 23, 2008 6:19 pm
Reply with quote

Hi Expat,

thank you very much for this very helpful hint.

It Works!!! icon_biggrin.gif
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


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

PostPosted: Thu Oct 23, 2008 9:50 pm
Reply with quote

Code:

//            SPACE=(CYL,(10,10),RLSE),RECFM=VB,LRECL=27994


If you want the output to be VBA/137, you should use:

Code:

//            SPACE=(CYL,(10,10),RLSE),RECFM=VBA
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 FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top