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
 

 

Creating Variable Length pattern file using IEBDG?

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

New User


Joined: 10 Jul 2012
Posts: 24
Location: USA

PostPosted: Tue Sep 23, 2014 2:41 am    Post subject: Creating Variable Length pattern file using IEBDG?
Reply with quote

Hi All,

I create multiple pattern files for testing purposes using the IEBDG utility of IBM, note that I always create "Fixed Block" files.

Now , I am in need of creating a variable length file , but I am getting this error when i try to do so:

Code:
                              DATA GENERATOR OUTPUT FOR CONTROL CARDS AND MESSAGES                       PAGE  0001         
          DSD OUTPUT=(OUT)                                                       00380033                                   
          FD  NAME=F1,STARTLOC=5,LENGTH=6,PICTURE=5,'12345',ACTION=RO            00390033                                   
          FD  NAME=F2,STARTLOC=11,LENGTH=6,PICTURE=5,'67890',ACTION=RP           00400033                                   
          FD  NAME=F3,STARTLOC=17,LENGTH=35,FORMAT=ZD,INDEX=1                    00410033                                   
          FD  NAME=F4,STARTLOC=52,LENGTH=5,PICTURE=5,'12345',ACTION=RP           00420033                                   
          FD  NAME=F5,STARTLOC=57,LENGTH=5,PICTURE=5,'67890',ACTION=RO           00430033                                   
          FD  NAME=F6,STARTLOC=62,LENGTH=63,FORMAT=AL,ACTION=SL                  00440033                                   
          CREATE QUANTITY=00900000,NAME=(F1,F2,F3,F3,F4,F6),FILL=X'FF'           00450033                                   
IEB716I PICTURE STRING OR FD FIELD OVERFLOWS OUTPUT RECORD OR INPUT FIELD SELECTED OVERRUNS INPUT WORKAREA                   
          END                                                                    00460033                                   
IEB700I                     DATA GENERATION HAS BEEN              COMPLETED COMPLETION CODE IS EIGHT                         

Actual JCL:***********************************************
//PATTERN  EXEC PGM=IEBDG                                             
//SYSPRINT DD  SYSOUT=*                                               
//OUT      DD  DSN=XXXXX.RAND.DATA.M100MB.TC2,                       
//             DISP=(NEW,CATLG,CATLG),                                 
//             UNIT=(SYSDA,10),                                       
//             STORCLAS=SC2,                                           
//             SPACE=(CYL,(1200,200),RLSE),                           
//             DCB=(RECFM=VB,LRECL=125,BLKSIZE=0)                     
//SYSIN    DD  *                                                       
 DSD OUTPUT=(OUT)                                                     
 FD  NAME=F1,STARTLOC=5,LENGTH=6,PICTURE=5,'12345',ACTION=RO           
 FD  NAME=F2,STARTLOC=11,LENGTH=6,PICTURE=5,'67890',ACTION=RP         
 FD  NAME=F3,STARTLOC=17,LENGTH=35,FORMAT=ZD,INDEX=1                   
 FD  NAME=F4,STARTLOC=52,LENGTH=5,PICTURE=5,'12345',ACTION=RP         
 FD  NAME=F5,STARTLOC=57,LENGTH=5,PICTURE=5,'67890',ACTION=RO         
 FD  NAME=F6,STARTLOC=62,LENGTH=63,FORMAT=AL,ACTION=SL                 
 CREATE QUANTITY=00900000,NAME=(F1,F2,F3,F3,F4,F6),FILL=X'FF'         
 END                                                                   





What could be the reason for this, also can anyone suggest me or share a JCL which creates a Variable length file using IEBDG utility...

I already did try to find it in IBM manuals, not able to find it, so any help from you guys would be really appreciated...Thanks in advance.!!
Back to top
View user's profile Send private message

Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1722
Location: UK

PostPosted: Tue Sep 23, 2014 6:05 pm    Post subject: Reply to: Creating Variable Length pattern file using IEBDG?
Reply with quote

One thing I can see is that your last FD defines a record of length 125 bytes but your JCL specifies 125 bytes - you need 4 bytes for the RDW so either your FD must be reduced in size or you LRECL increased.
Back to top
View user's profile Send private message
sudarshan.srivathsav

New User


Joined: 10 Jul 2012
Posts: 24
Location: USA

PostPosted: Tue Sep 23, 2014 8:46 pm    Post subject:
Reply with quote

Nic, Thanks you rightly pointed me about the RDW!.. Thanks
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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm


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