JCL Convert date PD --> Julian



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

JCL Convert date PD --> Julian

Postby Yashashri » Mon Sep 09, 2019 2:15 pm

Please find my requirement below
1. I want to take Current GDG as input which has date which is in PD format. When I view that file it shows date in HEX format.
2. Same date I want to convert it into Julian format
3. I want to write Input date in output file. Julian and Gregorian format.
Need help.
Yashashri
 
Posts: 2
Joined: Mon Sep 09, 2019 2:04 pm
Has thanked: 0 time
Been thanked: 0 time

Re: JCL Convert date PD --> Julian

Postby steve-myers » Mon Sep 09, 2019 5:03 pm

  1. The purpose of JCL is to instruct the system as to the resources required to run a program. JCL, by itself cannot process or manipulate data in any way. Only programs can process data or manipulate data.
  2. Just exactly what do you mean by "Julian date." The yyddd or cyyddd date used in the operating system is not a Julian date, and never was a Julian date, though it was improperly called a Julian date in the past.
  3. Only a program can manipulate or process data. Period. End of story.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: JCL Convert date PD --> Julian

Postby Yashashri » Mon Sep 09, 2019 5:33 pm

Can we do it using SORT ?
Yashashri
 
Posts: 2
Joined: Mon Sep 09, 2019 2:04 pm
Has thanked: 0 time
Been thanked: 0 time

Re: JCL Convert date PD --> Julian

Postby enrico-sorichetti » Mon Sep 09, 2019 6:41 pm

here is a link to DFsort manuals, staring from
https://www.ibm.com/support/pages/dfsort
and proceeding to
https://www.ibm.com/support/pages/dfsor ... ons#ZOSREF
probably not the latest ones but more than enough for the TS needs

here are two papers that provide more hints

DFSORT: Beyond Sorting
https://www.ibm.com/support/pages/beyon ... r-sortbynd

Smart DFSORT Tricks
https://www.ibm.com/support/pages/smart-dfsort-tricks
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2994
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Re: JCL Convert date PD --> Julian

Postby sergeyken » Mon Sep 09, 2019 11:02 pm

steve-myers wrote:
  1. The purpose of JCL is to instruct the system as to the resources required to run a program. JCL, by itself cannot process or manipulate data in any way. Only programs can process data or manipulate data.


Real recommendations on answering interview questions for JCL positions
2) Explain what is the use of JCL?

•It is used for the deleting creating, the Data Sets, GDG’S and VSAM clusters.
•It is used for comparing the files and PDS members
•It is used for compiling and executing the programs which includes batch programs as well
•It is used for merging and sorting of file data

:mrgreen:
Javas and Pythons come and go, but JCL and SORT stay forever.
User avatar
sergeyken
 
Posts: 408
Joined: Wed Jul 24, 2019 10:12 pm
Has thanked: 6 times
Been thanked: 40 times

Re: JCL Convert date PD --> Julian

Postby steve-myers » Tue Sep 10, 2019 5:49 am

sergeyken wrote:
2) Explain what is the use of JCL?

•It is used for the deleting creating, the Data Sets, GDG’S and VSAM clusters.
•It is used for comparing the files and PDS members
•It is used for compiling and executing the programs which includes batch programs as well
•It is used for merging and sorting of file data

Who came up with some of these "uses?"
  • JCL can delete data sets. No argument. JCL can allocate space for data sets and data sets that are members of a GDG. JCL cannot create a GDG index. JCL cannot store data in a data set; it can direct the system to run a program that stores data in a data set.
  • JCL can direct the system to run a program that compares the contents of a data set and the contents of another data set. Comparing the contents of data sets is done only by a program.
  • JCL does not compile anything. It directs the system to run a program that compiles other programs, as well as a program that prepares the binary output of a program that compiles a program so it can be executed by the sysyem.
  • JCL directs the system to run programs that merge or sort data.
In other words, about all that JCL actually does in Sergeyken's list is delete data sets
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: JCL Convert date PD --> Julian

Postby NicC » Tue Sep 10, 2019 8:59 pm

I like to think of JCL as a memo from me to the operating system requesting the operating system to carry out some tasks, listing the resources needed to carry out the task. So JCL asks for something to be done - it does not do it itself.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post