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
 

 

Carat(^) delimited file layout

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

New User


Joined: 08 May 2009
Posts: 19
Location: India

PostPosted: Thu Jul 09, 2009 10:50 am    Post subject: Carat(^) delimited file layout
Reply with quote

My requirement is to delimit the various fields in the output file with one carat(^).
Ex:
Emp No HICN No Name
0000000001^H0000001^Sureet

How to achieve this using outrec in jcl???
Back to top
View user's profile Send private message

Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Thu Jul 09, 2009 10:53 am    Post subject:
Reply with quote

Show us the some sample records with layout of input file....

Also which sort product you are using?
LRECL=? RECFM=?
Back to top
View user's profile Send private message
Sureet Mookherjee

New User


Joined: 08 May 2009
Posts: 19
Location: India

PostPosted: Thu Jul 09, 2009 1:01 pm    Post subject: Reply to: Carat(^) delimited file layout
Reply with quote

filelength is 1000 bytes and its syncsort that i am using
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Thu Jul 09, 2009 1:24 pm    Post subject: Reply to: Carat(^) delimited file layout
Reply with quote

search the forums for "CSV" ( comma separated values )
the process will be the same, You will be using a "^" instead of a comma ","

just a hint... something along the lines .....
OUTREC FIELDS=(p1,l2,'^",p2,l2,'^',...,....pn,ln)

p1,p2,...,...,pn will be the input field position
l1,l2,...,...,ln ill be the input field length

check the manuals for the exact syntax
and test
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Thu Jul 09, 2009 1:52 pm    Post subject:
Reply with quote

look at This post also
Back to top
View user's profile Send private message
Sureet Mookherjee

New User


Joined: 08 May 2009
Posts: 19
Location: India

PostPosted: Thu Jul 09, 2009 3:20 pm    Post subject: Reply to: Carat(^) delimited file layout
Reply with quote

Thanks for the reply Enrico
Back to top
View user's profile Send private message
Alissa Margulies

SYNCSORT Support


Joined: 25 Jul 2007
Posts: 500
Location: USA

PostPosted: Fri Jul 10, 2009 1:30 am    Post subject:
Reply with quote

Sureet,

Basing this solely on the small sample record you included in the original post, if each field has a single space between them, and there are no spaces within a field, then you may be able to use either FINDREP or ALTSEQ to change all the spaces to carats. This is a better approach if you do not know the exact positions of the spaces/carat replacement.
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
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


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