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
 

 

converting date of pic value 9(8) into 9(9) comp-3

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

New User


Joined: 23 Jul 2010
Posts: 3
Location: chennai

PostPosted: Mon Jul 26, 2010 5:32 pm    Post subject: converting date of pic value 9(8) into 9(9) comp-3
Reply with quote

Hi,
Can anyone help me with the syntax for converting a date in format CCYYMMDD with the 'pic 9(8)' into 'pic 9(9) comp-3'. Date occurs in the header along with few other details before and after it. Its starting position is 27.
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Mon Jul 26, 2010 5:35 pm    Post subject:
Reply with quote

Syntax of what, COBOL, SORT, EASYTRIEVE, SAS, REXX, CLIST ............
Back to top
View user's profile Send private message
MJENNIE

New User


Joined: 23 Jul 2010
Posts: 3
Location: chennai

PostPosted: Mon Jul 26, 2010 5:55 pm    Post subject: Reply to: converting date of pic value 9(8) into 9(9) comp-3
Reply with quote

hi,
i need the syntax for jcl.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Mon Jul 26, 2010 6:02 pm    Post subject:
Reply with quote

expat wrote:
Syntax of what, COBOL, SORT, EASYTRIEVE, SAS, REXX, CLIST ............

How do you mean the syntax for JCL

The reason I asked my previous question, reiterated, is that the JCL needs to actually execute some program to perform the conversion, and until you tell us which program that you wish the JCL to execute there is no way on earth that we can give you any syntax whatsoever.

I think it must the Alice Cooper time of year again .................
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8117
Location: East Dubuque, Illinois, USA

PostPosted: Mon Jul 26, 2010 6:05 pm    Post subject:
Reply with quote

Quote:
i need the syntax for jcl.
If this is what you need, be aware you have asked for the impossible. JCL does nothing but execute programs. It does not change data, it does not create data, all it does is execute programs. We need to know which program your JCL will be executing in order to provide you a meaningful answer.
Back to top
View user's profile Send private message
MJENNIE

New User


Joined: 23 Jul 2010
Posts: 3
Location: chennai

PostPosted: Mon Jul 26, 2010 6:37 pm    Post subject: Reply to: converting date of pic value 9(8) into 9(9) comp-3
Reply with quote

Am writting a JCL to add a header and trailer to a group of records in a file. The amended records are written onto another new file. My JCL does not execute anyother program.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Mon Jul 26, 2010 6:40 pm    Post subject:
Reply with quote

Please read, read again, and read again and again the response from both Robert and myself.

Keep reading and reading and reading until you understand what we are saying to you.

Please post your JCL for us to look at.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Jul 26, 2010 8:57 pm    Post subject:
Reply with quote

Hello and welcome to the forum,

Quote:
My JCL does not execute anyother program.
You are in for a very long week. . . Yes, your jcl does execute a program or it would not run. . .

Look closely at your jcl for one or more lines that have EXEC PGM= coded.
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 How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts LISTIDR compiled date/time jerryte IBM Tools 3 Thu Apr 20, 2017 7:37 pm
No new posts SUBSTR for Date functions Shaheen Shaik DB2 4 Thu Apr 06, 2017 2:14 pm


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