MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

need help to create a file in a required format

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
hogandeveloper
Beginner


Joined: 05 Aug 2008
Posts: 11
Topics: 10

PostPosted: Fri Jun 18, 2010 4:30 am    Post subject: need help to create a file in a required format Reply with quote

Hi All,
I got a requirement such that i have a notepad file and it contains a few thousand ID numbers, i need to take these ID numbers and feed to a FB PS file in the below format. I need to prefill the fileds with spaces and zeroes for alpha numeric and numberic fields respectively and also prefix the field 123-ID-NUM PIC 9(15) with leading zeroes as the length of the ID number is not the same. Please assist me.
Code:

01 123-FILE1.                         
   05  FILLER                          PIC  X(02).     
   05  FILLER                          PIC  X(02).     
   05  123-FILE-LAYOUT.                             
       10  FILLER                      PIC 9(15).     
       10  FILLER                      PIC  X.         
       10  123-ID-NUM                  PIC 9(15).     
       10  FILLER                      PIC  X.         
       10  123-CUST-KEY.                           
           15  123-CO-ID               PIC  9(04).     
           15  123-KEY                 PIC  X(9).     
           15  123-TIE                 PIC  9(04).     
       10  FILLER                      PIC  X.         
       10  123-CUST-AUTH-NO            PIC 9(9) COMP-3.
       10  FILLER                      PIC  X(78).   
 

Thanks in advance
HG
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Fri Jun 18, 2010 10:46 am    Post subject: Reply with quote

hogandeveloper,

show me an example of the notepad file values. Does it just have the ID numbers ? or any other data?
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group