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

Header and trailer for a PS file


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

New User


Joined: 19 Aug 2019
Posts: 2
Location: India

PostPosted: Mon Aug 19, 2019 3:54 pm
Reply with quote

Hi!,

I got following requirement,

Input : a PS file with only policy numbers
ex: 0000000001
0000000002
0000000003
Output : <header>
input records
<trailer>

Header:- H,123456,client company name,<date with format:MMDDYYYY>,<time with format : HH:MM>,1
Note: no saperation in date

Trailer:- T,<count of input records>
ex: T,3

Please let me know how can I achieve with particular formatting

Thanks,
Anand kumar
Back to top
View user's profile Send private message
dneufarth

Active User


Joined: 27 Apr 2005
Posts: 319
Location: Inside the SPEW (Cincinnati OH USA)

PostPosted: Mon Aug 19, 2019 4:19 pm
Reply with quote

The source of the other information is?
Back to top
View user's profile Send private message
kumara kanthirava

New User


Joined: 19 Aug 2019
Posts: 2
Location: India

PostPosted: Mon Aug 19, 2019 4:41 pm
Reply with quote

you mean the info @ header & Trailer?
those are static values and is my project specific. so posted dummy values
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 2627
Location: NYC,USA

PostPosted: Mon Aug 19, 2019 5:10 pm
Reply with quote

Please learn to use code tags and do a research before posting basic questions which are discussed on this forum several times.
You can use this link and it is expected to be able to twist the way you want to see the Header and Details.

ibmmainframes.com/about16524.html
Back to top
View user's profile Send private message
sergeyken
Warnings : 2

Senior Member


Joined: 29 Apr 2008
Posts: 1003

PostPosted: Mon Aug 19, 2019 6:08 pm
Reply with quote

This question is not related in any manner neither to JCL, nor to VSAM.

Lesson #1 to take: learn which of zOS components is supposed to perform any specific task? Probably, at the Beginners Forum?
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Mon Aug 19, 2019 11:02 pm
Reply with quote

"Please let me know how can I achieve with particular formatting "
By writing a program or using some utility. However, you cannot do it by JCL or VSAM as these do not manipulate data.
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 How to read unpacked field created in... DFSORT/ICETOOL 11
No new posts How to add 2 digits to COMP-3 file? DFSORT/ICETOOL 11
No new posts VSAM file Storage Calculation JCL & VSAM 3
No new posts Negative value - packed field - Natur... Java & MQSeries 0
This topic is locked: you cannot edit posts or make replies. Writng matched records into output fi... DFSORT/ICETOOL 11
Search our Forums:

Back to Top